added complete support for packages?
This commit is contained in:
1 parent
ac82a4c96c
commit
f95dd75198
19 files changed
+365
-47
No files matched your search
@@ -25,18 +25,6 @@ class HassConfig:
|
||||
raise AssertionError("configurations.homeassistant must be a dictionary!")
|
||||
return {}
|
||||
|
||||
@property
|
||||
def pacakges(self) -> dict:
|
||||
if packages_config := self.homeassistant.get("packages", None):
|
||||
if isinstance(packages_config, IncludedYamlDir): # type: ignore
|
||||
packages_config = packages_config.to_normalized_json()
|
||||
if isinstance(packages_config, dict):
|
||||
return packages_config
|
||||
else:
|
||||
raise AssertionError("configurations.homeassistant.packages must be a dictionary!")
|
||||
|
||||
return {}
|
||||
|
||||
@property
|
||||
def automation_tags(self) -> TagManager:
|
||||
tag_path = self.get_automation_tags_path()
|
||||
|
||||
Reference in new issue
Block a user