Fix feature flag in climate (#121398)

This commit is contained in:
G Johansson 2024-07-06 23:36:53 +02:00 committed by Franck Nijhof
parent 37621e77ae
commit 780f7254c1
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -379,7 +379,7 @@ class ClimateEntity(Entity, cached_properties=CACHED_PROPERTIES_WITH_ATTR_):
supported_features = self.supported_features
if supported_features & (
ClimateEntityFeature.TURN_ON | ClimateEntityFeature.TURN_ON
ClimateEntityFeature.TURN_ON | ClimateEntityFeature.TURN_OFF
):
# The entity supports both turn_on and turn_off, the backwards compatibility
# checks are not needed