home-assistant: Add backup dependency to default_config manifest
Upstream loads and installs it dynamically at runtime and as such mentions it in the default_config documentation, but not in the manifest, which we use as the source of truth for generating our component dependencies.
This commit is contained in:
parent
7c9dac2bf2
commit
140e352d0a
2 changed files with 14 additions and 0 deletions
|
@ -671,6 +671,7 @@
|
|||
pyserial
|
||||
pyudev
|
||||
scapy
|
||||
securetar
|
||||
sqlalchemy
|
||||
zeroconf
|
||||
];
|
||||
|
|
|
@ -46,6 +46,17 @@ PKG_PREFERENCES = {
|
|||
"youtube_dl": "youtube-dl-light",
|
||||
}
|
||||
|
||||
# Some dependencies are loaded dynamically at runtime, and are not
|
||||
# mentioned in the manifest files.
|
||||
EXTRA_COMPONENT_DEPS = {
|
||||
"conversation": [
|
||||
"intent"
|
||||
],
|
||||
"default_config": [
|
||||
"backup",
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
|
||||
def run_sync(cmd: List[str]) -> None:
|
||||
|
@ -88,6 +99,8 @@ def parse_components(version: str = "master"):
|
|||
)
|
||||
for domain in sorted(integrations):
|
||||
integration = integrations[domain]
|
||||
if extra_deps := EXTRA_COMPONENT_DEPS.get(integration.domain):
|
||||
integration.dependencies.extend(extra_deps)
|
||||
if not integration.disabled:
|
||||
components[domain] = integration.manifest
|
||||
|
||||
|
|
Loading…
Reference in a new issue