Add new climate feature flags to switcher_kis (#109459)
This commit is contained in:
parent
c732668d6e
commit
e109ed53eb
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue