Fix hassfest requirements check (#115744)

* Fix hassfest requirements check

* Add electrasmart to ignore list
pull/115757/head
Erik Montnemery 2024-04-17 12:27:48 +02:00 committed by GitHub
parent ff1ac1a544
commit fee1f2833d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -32,6 +32,7 @@ IGNORE_VIOLATIONS = {
# Still has standard library requirements. # Still has standard library requirements.
"acmeda", "acmeda",
"blink", "blink",
"electrasmart",
"ezviz", "ezviz",
"hdmi_cec", "hdmi_cec",
"juicenet", "juicenet",
@ -126,7 +127,7 @@ def validate_requirements(integration: Integration) -> None:
f"Failed to normalize package name from requirement {req}", f"Failed to normalize package name from requirement {req}",
) )
return return
if (package == ign for ign in IGNORE_PACKAGES): if package in IGNORE_PACKAGES:
continue continue
integration_requirements.add(req) integration_requirements.add(req)
integration_packages.add(package) integration_packages.add(package)
@ -150,7 +151,7 @@ def validate_requirements(integration: Integration) -> None:
# Check for requirements incompatible with standard library. # Check for requirements incompatible with standard library.
for req in all_integration_requirements: for req in all_integration_requirements:
if req in sys.stlib_module_names: if req in sys.stdlib_module_names:
integration.add_error( integration.add_error(
"requirements", "requirements",
f"Package {req} is not compatible with the Python standard library", f"Package {req} is not compatible with the Python standard library",