mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +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
9c92151ad1
commit
b8c06ad019
@ -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