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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user