From fee1f2833d0ac0f436ff8be8898152eec52003b2 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 17 Apr 2024 12:27:48 +0200 Subject: [PATCH] Fix hassfest requirements check (#115744) * Fix hassfest requirements check * Add electrasmart to ignore list --- script/hassfest/requirements.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/hassfest/requirements.py b/script/hassfest/requirements.py index 18d560f840f..aba7e5819d2 100644 --- a/script/hassfest/requirements.py +++ b/script/hassfest/requirements.py @@ -32,6 +32,7 @@ IGNORE_VIOLATIONS = { # Still has standard library requirements. "acmeda", "blink", + "electrasmart", "ezviz", "hdmi_cec", "juicenet", @@ -126,7 +127,7 @@ def validate_requirements(integration: Integration) -> None: f"Failed to normalize package name from requirement {req}", ) return - if (package == ign for ign in IGNORE_PACKAGES): + if package in IGNORE_PACKAGES: continue integration_requirements.add(req) integration_packages.add(package) @@ -150,7 +151,7 @@ def validate_requirements(integration: Integration) -> None: # Check for requirements incompatible with standard library. for req in all_integration_requirements: - if req in sys.stlib_module_names: + if req in sys.stdlib_module_names: integration.add_error( "requirements", f"Package {req} is not compatible with the Python standard library",