Rename hassfest _validate_dependencies_exist (#90503)

pull/90512/head
Erik Montnemery 2023-03-30 12:05:11 +02:00 committed by GitHub
parent 196f5702b8
commit b316ffff9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -323,14 +323,14 @@ def _validate_circular_dependencies(integrations: dict[str, Integration]) -> Non
)
def _validate_dependencies_exist(
def _validate_dependencies(
integrations: dict[str, Integration],
) -> None:
"""Check that all referenced dependencies exist and are not duplicated."""
for integration in integrations.values():
if not integration.manifest:
continue
# check that all referenced dependencies exist
after_deps = integration.manifest.get("after_dependencies", [])
for dep in integration.manifest.get("dependencies", []):
if dep in after_deps:
@ -353,5 +353,5 @@ def validate(
_validate_dependency_imports(integrations)
if not config.specific_integrations:
_validate_dependencies_exist(integrations)
_validate_dependencies(integrations)
_validate_circular_dependencies(integrations)