mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Rename hassfest _validate_dependencies_exist (#90503)
This commit is contained in:
parent
196f5702b8
commit
b316ffff9b
@ -323,14 +323,14 @@ def _validate_circular_dependencies(integrations: dict[str, Integration]) -> Non
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def _validate_dependencies_exist(
|
def _validate_dependencies(
|
||||||
integrations: dict[str, Integration],
|
integrations: dict[str, Integration],
|
||||||
) -> None:
|
) -> None:
|
||||||
|
"""Check that all referenced dependencies exist and are not duplicated."""
|
||||||
for integration in integrations.values():
|
for integration in integrations.values():
|
||||||
if not integration.manifest:
|
if not integration.manifest:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# check that all referenced dependencies exist
|
|
||||||
after_deps = integration.manifest.get("after_dependencies", [])
|
after_deps = integration.manifest.get("after_dependencies", [])
|
||||||
for dep in integration.manifest.get("dependencies", []):
|
for dep in integration.manifest.get("dependencies", []):
|
||||||
if dep in after_deps:
|
if dep in after_deps:
|
||||||
@ -353,5 +353,5 @@ def validate(
|
|||||||
_validate_dependency_imports(integrations)
|
_validate_dependency_imports(integrations)
|
||||||
|
|
||||||
if not config.specific_integrations:
|
if not config.specific_integrations:
|
||||||
_validate_dependencies_exist(integrations)
|
_validate_dependencies(integrations)
|
||||||
_validate_circular_dependencies(integrations)
|
_validate_circular_dependencies(integrations)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user