1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-07 13:52:20 +01:00

Add new Error type to skip prepending path (#6716)

This commit is contained in:
Jesse Hills
2024-05-10 10:57:47 +12:00
committed by GitHub
parent 026c3a69b8
commit 8280772b91
2 changed files with 6 additions and 0 deletions

View File

@@ -148,6 +148,8 @@ class Config(OrderedDict, fv.FinalValidateConfig):
path = path or []
try:
yield
except cv.FinalExternalInvalid as e:
self.add_error(e)
except vol.Invalid as e:
e.prepend(path)
self.add_error(e)