forked from home-assistant/core
Fix Bosch-SHC switch state (#116721)
This commit is contained in:
committed by
Franck Nijhof
parent
6d537e2a66
commit
bbb94d9e17
@@ -43,21 +43,21 @@ SWITCH_TYPES: dict[str, SHCSwitchEntityDescription] = {
|
|||||||
"smartplug": SHCSwitchEntityDescription(
|
"smartplug": SHCSwitchEntityDescription(
|
||||||
key="smartplug",
|
key="smartplug",
|
||||||
device_class=SwitchDeviceClass.OUTLET,
|
device_class=SwitchDeviceClass.OUTLET,
|
||||||
on_key="state",
|
on_key="switchstate",
|
||||||
on_value=SHCSmartPlug.PowerSwitchService.State.ON,
|
on_value=SHCSmartPlug.PowerSwitchService.State.ON,
|
||||||
should_poll=False,
|
should_poll=False,
|
||||||
),
|
),
|
||||||
"smartplugcompact": SHCSwitchEntityDescription(
|
"smartplugcompact": SHCSwitchEntityDescription(
|
||||||
key="smartplugcompact",
|
key="smartplugcompact",
|
||||||
device_class=SwitchDeviceClass.OUTLET,
|
device_class=SwitchDeviceClass.OUTLET,
|
||||||
on_key="state",
|
on_key="switchstate",
|
||||||
on_value=SHCSmartPlugCompact.PowerSwitchService.State.ON,
|
on_value=SHCSmartPlugCompact.PowerSwitchService.State.ON,
|
||||||
should_poll=False,
|
should_poll=False,
|
||||||
),
|
),
|
||||||
"lightswitch": SHCSwitchEntityDescription(
|
"lightswitch": SHCSwitchEntityDescription(
|
||||||
key="lightswitch",
|
key="lightswitch",
|
||||||
device_class=SwitchDeviceClass.SWITCH,
|
device_class=SwitchDeviceClass.SWITCH,
|
||||||
on_key="state",
|
on_key="switchstate",
|
||||||
on_value=SHCLightSwitch.PowerSwitchService.State.ON,
|
on_value=SHCLightSwitch.PowerSwitchService.State.ON,
|
||||||
should_poll=False,
|
should_poll=False,
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user