mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Add new climate feature flags to switcher_kis (#109459)
This commit is contained in:
parent
c732668d6e
commit
e109ed53eb
@ -86,6 +86,7 @@ class SwitcherClimateEntity(
|
|||||||
|
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
_attr_name = None
|
_attr_name = None
|
||||||
|
_enable_turn_on_off_backwards_compatibility = False
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, coordinator: SwitcherDataUpdateCoordinator, remote: SwitcherBreezeRemote
|
self, coordinator: SwitcherDataUpdateCoordinator, remote: SwitcherBreezeRemote
|
||||||
@ -118,6 +119,10 @@ class SwitcherClimateEntity(
|
|||||||
if features["swing"] and not remote.separated_swing_command:
|
if features["swing"] and not remote.separated_swing_command:
|
||||||
self._attr_supported_features |= ClimateEntityFeature.SWING_MODE
|
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)
|
self._update_data(True)
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user