Address stateless switch feedback in Overkiz integration (#64430)
* Address stateless switch feedback * Address feedbcak * Change order back to original
This commit is contained in:
parent
4d72e41a3e
commit
d2a8114b48
1 changed files with 2 additions and 6 deletions
|
@ -74,19 +74,15 @@ SWITCH_DESCRIPTIONS: list[OverkizSwitchDescription] = [
|
||||||
key=UIWidget.RTD_INDOOR_SIREN,
|
key=UIWidget.RTD_INDOOR_SIREN,
|
||||||
turn_on=lambda execute_command: execute_command(OverkizCommand.ON),
|
turn_on=lambda execute_command: execute_command(OverkizCommand.ON),
|
||||||
turn_off=lambda execute_command: execute_command(OverkizCommand.OFF),
|
turn_off=lambda execute_command: execute_command(OverkizCommand.OFF),
|
||||||
is_on=lambda select_state: (
|
|
||||||
select_state(OverkizState.CORE_ON_OFF) == OverkizCommandParam.ON
|
|
||||||
),
|
|
||||||
icon="mdi:bell",
|
icon="mdi:bell",
|
||||||
|
is_on=lambda select_state: False, # Remove when is_on in SwitchEntity doesn't require a bool value anymore
|
||||||
),
|
),
|
||||||
OverkizSwitchDescription(
|
OverkizSwitchDescription(
|
||||||
key=UIWidget.RTD_OUTDOOR_SIREN,
|
key=UIWidget.RTD_OUTDOOR_SIREN,
|
||||||
turn_on=lambda execute_command: execute_command(OverkizCommand.ON),
|
turn_on=lambda execute_command: execute_command(OverkizCommand.ON),
|
||||||
turn_off=lambda execute_command: execute_command(OverkizCommand.OFF),
|
turn_off=lambda execute_command: execute_command(OverkizCommand.OFF),
|
||||||
is_on=lambda select_state: (
|
|
||||||
select_state(OverkizState.CORE_ON_OFF) == OverkizCommandParam.ON
|
|
||||||
),
|
|
||||||
icon="mdi:bell",
|
icon="mdi:bell",
|
||||||
|
is_on=lambda select_state: False, # Remove when is_on in SwitchEntity doesn't require a bool value anymore
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue