From d2a8114b48356da472b5d26ff581d9a5564f59f6 Mon Sep 17 00:00:00 2001 From: Mick Vleeshouwer Date: Wed, 19 Jan 2022 13:50:26 -0800 Subject: [PATCH] Address stateless switch feedback in Overkiz integration (#64430) * Address stateless switch feedback * Address feedbcak * Change order back to original --- homeassistant/components/overkiz/switch.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/overkiz/switch.py b/homeassistant/components/overkiz/switch.py index 95d96e6465c..969a9508943 100644 --- a/homeassistant/components/overkiz/switch.py +++ b/homeassistant/components/overkiz/switch.py @@ -74,19 +74,15 @@ SWITCH_DESCRIPTIONS: list[OverkizSwitchDescription] = [ key=UIWidget.RTD_INDOOR_SIREN, turn_on=lambda execute_command: execute_command(OverkizCommand.ON), 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", + is_on=lambda select_state: False, # Remove when is_on in SwitchEntity doesn't require a bool value anymore ), OverkizSwitchDescription( key=UIWidget.RTD_OUTDOOR_SIREN, turn_on=lambda execute_command: execute_command(OverkizCommand.ON), 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", + is_on=lambda select_state: False, # Remove when is_on in SwitchEntity doesn't require a bool value anymore ), ]