Add new climate feature flags to switcher_kis (#109459)

This commit is contained in:
G Johansson 2024-02-04 09:00:31 -05:00 committed by GitHub
parent c732668d6e
commit e109ed53eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,6 +86,7 @@ class SwitcherClimateEntity(
_attr_has_entity_name = True
_attr_name = None
_enable_turn_on_off_backwards_compatibility = False
def __init__(
self, coordinator: SwitcherDataUpdateCoordinator, remote: SwitcherBreezeRemote
@ -118,6 +119,10 @@ class SwitcherClimateEntity(
if features["swing"] and not remote.separated_swing_command:
self._attr_supported_features |= ClimateEntityFeature.SWING_MODE
# There is always support for off + minimum one other mode so no need to check
self._attr_supported_features |= (
ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON
)
self._update_data(True)
@callback