Migrate wilight light to ColorMode (#70906)
This commit is contained in:
parent
9281f46bcd
commit
db296a6d1e
1 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,9 @@ async def async_setup_entry(
|
|||
class WiLightLightOnOff(WiLightDevice, LightEntity):
|
||||
"""Representation of a WiLights light on-off."""
|
||||
|
||||
_attr_color_mode = ColorMode.ONOFF
|
||||
_attr_supported_color_modes = {ColorMode.ONOFF}
|
||||
|
||||
@property
|
||||
def is_on(self):
|
||||
"""Return true if device is on."""
|
||||
|
|
Loading…
Add table
Reference in a new issue