Skip to content

Commit

Permalink
Fix including from sub dir (#18378)
Browse files Browse the repository at this point in the history
The include path is now always relative to the root of the config dir.
  • Loading branch information
bramkragten authored and balloob committed Nov 11, 2018
1 parent 9c92151 commit b8c06ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/util/ruamel_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b8c06ad

Please sign in to comment.