From b316ffff9bc6efa93ff536c7bd6b631157d4a4cb Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 30 Mar 2023 12:05:11 +0200 Subject: [PATCH] Rename hassfest _validate_dependencies_exist (#90503) --- script/hassfest/dependencies.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/hassfest/dependencies.py b/script/hassfest/dependencies.py index 28c73d890af..c0733841ed5 100644 --- a/script/hassfest/dependencies.py +++ b/script/hassfest/dependencies.py @@ -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)