manager code

This commit is contained in:
ari committed 2021-12-30 23:16:15 -05:00
1 parent 8adb86b2ec
commit ef5715ea6c
9 files changed
+66 -35

No files matched your search

+3 -3
View File
@@ -21,8 +21,8 @@ class HassConfig:
if "automation" in config:
automation_ref = config["automation"]
if isinstance(automation_ref, IncludedYaml):
automation_path = automation_ref.path
automation_path = self.root_path / automation_ref.path_str
else:
return list(config["automation"])
return config["automation"]
with automation_path.open("r") as f:
return list(load_yaml(f)) # type: ignore
return load_yaml(f) # type: ignore