File tree Expand file tree Collapse file tree 4 files changed +4
-24
lines changed
homeassistant/components/suez_water Expand file tree Collapse file tree 4 files changed +4
-24
lines changed Original file line number Diff line number Diff line change 66 "documentation" : " https://www.home-assistant.io/integrations/suez_water" ,
77 "iot_class" : " cloud_polling" ,
88 "loggers" : [" pysuez" , " regex" ],
9- "requirements" : [" pysuezV2==0.2.1 " ]
9+ "requirements" : [" pysuezV2==0.2.2 " ]
1010}
Original file line number Diff line number Diff line change @@ -2278,7 +2278,7 @@ pysqueezebox==0.10.0
22782278pystiebeleltron==0.0.1.dev2
22792279
22802280# homeassistant.components.suez_water
2281- pysuezV2==0.2.1
2281+ pysuezV2==0.2.2
22822282
22832283# homeassistant.components.switchbee
22842284pyswitchbee==1.8.3
Original file line number Diff line number Diff line change @@ -1835,7 +1835,7 @@ pyspeex-noise==1.0.2
18351835pysqueezebox==0.10.0
18361836
18371837# homeassistant.components.suez_water
1838- pysuezV2==0.2.1
1838+ pysuezV2==0.2.2
18391839
18401840# homeassistant.components.switchbee
18411841pyswitchbee==1.8.3
Original file line number Diff line number Diff line change 2828PIP_REGEX = re .compile (r"^(--.+\s)?([-_\.\w\d]+.*(?:==|>=|<=|~=|!=|<|>|===)?.*$)" )
2929PIP_VERSION_RANGE_SEPARATOR = re .compile (r"^(==|>=|<=|~=|!=|<|>|===)?(.*)$" )
3030
31- IGNORE_STANDARD_LIBRARY_VIOLATIONS = {
32- # Integrations which have standard library requirements.
33- "suez_water" ,
34- }
35-
3631
3732def validate (integrations : dict [str , Integration ], config : Config ) -> None :
3833 """Handle requirements for integrations."""
@@ -143,29 +138,14 @@ def validate_requirements(integration: Integration) -> None:
143138 if req in sys .stdlib_module_names :
144139 standard_library_violations .add (req )
145140
146- if (
147- standard_library_violations
148- and integration .domain not in IGNORE_STANDARD_LIBRARY_VIOLATIONS
149- ):
141+ if standard_library_violations :
150142 integration .add_error (
151143 "requirements" ,
152144 (
153145 f"Package { req } has dependencies { standard_library_violations } which "
154146 "are not compatible with the Python standard library"
155147 ),
156148 )
157- elif (
158- not standard_library_violations
159- and integration .domain in IGNORE_STANDARD_LIBRARY_VIOLATIONS
160- ):
161- integration .add_error (
162- "requirements" ,
163- (
164- f"Integration { integration .domain } no longer has requirements which are"
165- " incompatible with the Python standard library, remove it from "
166- "IGNORE_STANDARD_LIBRARY_VIOLATIONS"
167- ),
168- )
169149
170150
171151@cache
You can’t perform that action at this time.
0 commit comments