Skip to content

Commit

Permalink
fix: fix type issue in HA 2023.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jason0x43 committed Mar 2, 2024
1 parent 3cf7f0f commit 9f911d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hubitat/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __init__(self, **kwargs: Unpack[HubitatEntityArgs]):
self._attr_unique_id = f"{super().unique_id}::climate"

if hasattr(ClimateEntityFeature, "TURN_OFF"):
self._attr_supported_features |= ClimateEntityFeature.TURN_OFF
self._attr_supported_features |= getattr(ClimateEntityFeature, "TURN_OFF")
self._enable_turn_on_off_backwards_compatibility = False

def load_state(self):
Expand Down

0 comments on commit 9f911d0

Please sign in to comment.