mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Correct color mode in shelly light (#70967)
This commit is contained in:
parent
e6da1d7318
commit
db3eb26c74
@ -380,6 +380,9 @@ class BlockShellyLight(ShellyBlockEntity, LightEntity):
|
||||
class RpcShellyLight(ShellyRpcEntity, LightEntity):
|
||||
"""Entity that controls a light on RPC based Shelly devices."""
|
||||
|
||||
_attr_color_mode = ColorMode.ONOFF
|
||||
_attr_supported_color_modes = {ColorMode.ONOFF}
|
||||
|
||||
def __init__(self, wrapper: RpcDeviceWrapper, id_: int) -> None:
|
||||
"""Initialize light."""
|
||||
super().__init__(wrapper, f"switch:{id_}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user