added root path for ha

This commit is contained in:
Ari Sosnovsky committed 2021-11-11 12:41:10 -05:00
1 parent c493c0a3d0
commit 3c082608f8
4 files changed
+19 -4

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ def load_hass_config(file_path: Path) -> HassConfig:
"""
HAY = HassYaml()
data = HAY.load(file_path / "configuration.yaml")
return HassConfig(HAY.secrets, data)
return HassConfig(HAY.secrets, data, file_path / "configuration.yaml")
def dump_yaml(obj: Any) -> str:
+1
View File
@@ -61,3 +61,4 @@ class HassConfig(NamedTuple):
secrets: dict # the secrets file content
config: dict # the complete configration.yaml tree
root_config_path: Path # where the root 'configuration.yaml' lives