mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Bump pysuezV2 to 0.2.2 (#129205)
Co-authored-by: Joostlek <joostlek@outlook.com>
This commit is contained in:
parent
275bbc81f0
commit
65ee4e1916
@ -6,5 +6,5 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/suez_water",
|
"documentation": "https://www.home-assistant.io/integrations/suez_water",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["pysuez", "regex"],
|
"loggers": ["pysuez", "regex"],
|
||||||
"requirements": ["pysuezV2==0.2.1"]
|
"requirements": ["pysuezV2==0.2.2"]
|
||||||
}
|
}
|
||||||
|
@ -2278,7 +2278,7 @@ pysqueezebox==0.10.0
|
|||||||
pystiebeleltron==0.0.1.dev2
|
pystiebeleltron==0.0.1.dev2
|
||||||
|
|
||||||
# homeassistant.components.suez_water
|
# homeassistant.components.suez_water
|
||||||
pysuezV2==0.2.1
|
pysuezV2==0.2.2
|
||||||
|
|
||||||
# homeassistant.components.switchbee
|
# homeassistant.components.switchbee
|
||||||
pyswitchbee==1.8.3
|
pyswitchbee==1.8.3
|
||||||
|
@ -1835,7 +1835,7 @@ pyspeex-noise==1.0.2
|
|||||||
pysqueezebox==0.10.0
|
pysqueezebox==0.10.0
|
||||||
|
|
||||||
# homeassistant.components.suez_water
|
# homeassistant.components.suez_water
|
||||||
pysuezV2==0.2.1
|
pysuezV2==0.2.2
|
||||||
|
|
||||||
# homeassistant.components.switchbee
|
# homeassistant.components.switchbee
|
||||||
pyswitchbee==1.8.3
|
pyswitchbee==1.8.3
|
||||||
|
@ -28,11 +28,6 @@ PACKAGE_REGEX = re.compile(
|
|||||||
PIP_REGEX = re.compile(r"^(--.+\s)?([-_\.\w\d]+.*(?:==|>=|<=|~=|!=|<|>|===)?.*$)")
|
PIP_REGEX = re.compile(r"^(--.+\s)?([-_\.\w\d]+.*(?:==|>=|<=|~=|!=|<|>|===)?.*$)")
|
||||||
PIP_VERSION_RANGE_SEPARATOR = re.compile(r"^(==|>=|<=|~=|!=|<|>|===)?(.*)$")
|
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:
|
def validate(integrations: dict[str, Integration], config: Config) -> None:
|
||||||
"""Handle requirements for integrations."""
|
"""Handle requirements for integrations."""
|
||||||
@ -143,10 +138,7 @@ def validate_requirements(integration: Integration) -> None:
|
|||||||
if req in sys.stdlib_module_names:
|
if req in sys.stdlib_module_names:
|
||||||
standard_library_violations.add(req)
|
standard_library_violations.add(req)
|
||||||
|
|
||||||
if (
|
if standard_library_violations:
|
||||||
standard_library_violations
|
|
||||||
and integration.domain not in IGNORE_STANDARD_LIBRARY_VIOLATIONS
|
|
||||||
):
|
|
||||||
integration.add_error(
|
integration.add_error(
|
||||||
"requirements",
|
"requirements",
|
||||||
(
|
(
|
||||||
@ -154,18 +146,6 @@ def validate_requirements(integration: Integration) -> None:
|
|||||||
"are not compatible with the Python standard library"
|
"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
|
@cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user