mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 16:17:20 +00:00
Fix including from sub dir (#18378)
The include path is now always relative to the root of the config dir.
This commit is contained in:
parent
6bcba1fbea
commit
2aa2233d9b
@ -80,7 +80,8 @@ def load_yaml(fname: str, round_trip: bool = False) -> JSON_TYPE:
|
||||
yaml = YAML(typ='rt')
|
||||
yaml.preserve_quotes = True
|
||||
else:
|
||||
ExtSafeConstructor.name = fname
|
||||
if not hasattr(ExtSafeConstructor, 'name'):
|
||||
ExtSafeConstructor.name = fname
|
||||
yaml = YAML(typ='safe')
|
||||
yaml.Constructor = ExtSafeConstructor
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user