Bump pysuezV2 to 0.2.2 (#129205)

Co-authored-by: Joostlek <joostlek@outlook.com>
This commit is contained in:
jb101010-2 2024-10-26 11:44:02 +02:00 committed by GitHub
parent 275bbc81f0
commit 65ee4e1916
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 24 deletions

View file

@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/suez_water",
"iot_class": "cloud_polling",
"loggers": ["pysuez", "regex"],
"requirements": ["pysuezV2==0.2.1"]
"requirements": ["pysuezV2==0.2.2"]
}

View file

@ -2278,7 +2278,7 @@ pysqueezebox==0.10.0
pystiebeleltron==0.0.1.dev2
# homeassistant.components.suez_water
pysuezV2==0.2.1
pysuezV2==0.2.2
# homeassistant.components.switchbee
pyswitchbee==1.8.3

View file

@ -1835,7 +1835,7 @@ pyspeex-noise==1.0.2
pysqueezebox==0.10.0
# homeassistant.components.suez_water
pysuezV2==0.2.1
pysuezV2==0.2.2
# homeassistant.components.switchbee
pyswitchbee==1.8.3

View file

@ -28,11 +28,6 @@ PACKAGE_REGEX = re.compile(
PIP_REGEX = re.compile(r"^(--.+\s)?([-_\.\w\d]+.*(?:==|>=|<=|~=|!=|<|>|===)?.*$)")
PIP_VERSION_RANGE_SEPARATOR = re.compile(r"^(==|>=|<=|~=|!=|<|>|===)?(.*)$")
IGNORE_STANDARD_LIBRARY_VIOLATIONS = {
# Integrations which have standard library requirements.
"suez_water",
}
def validate(integrations: dict[str, Integration], config: Config) -> None:
"""Handle requirements for integrations."""
@ -143,10 +138,7 @@ def validate_requirements(integration: Integration) -> None:
if req in sys.stdlib_module_names:
standard_library_violations.add(req)
if (
standard_library_violations
and integration.domain not in IGNORE_STANDARD_LIBRARY_VIOLATIONS
):
if standard_library_violations:
integration.add_error(
"requirements",
(
@ -154,18 +146,6 @@ def validate_requirements(integration: Integration) -> None:
"are not compatible with the Python standard library"
),
)
elif (
not standard_library_violations
and integration.domain in IGNORE_STANDARD_LIBRARY_VIOLATIONS
):
integration.add_error(
"requirements",
(
f"Integration {integration.domain} no longer has requirements which are"
" incompatible with the Python standard library, remove it from "
"IGNORE_STANDARD_LIBRARY_VIOLATIONS"
),
)
@cache