mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Migrate wilight light to ColorMode (#70906)
This commit is contained in:
parent
9281f46bcd
commit
db296a6d1e
@ -49,6 +49,9 @@ async def async_setup_entry(
|
|||||||
class WiLightLightOnOff(WiLightDevice, LightEntity):
|
class WiLightLightOnOff(WiLightDevice, LightEntity):
|
||||||
"""Representation of a WiLights light on-off."""
|
"""Representation of a WiLights light on-off."""
|
||||||
|
|
||||||
|
_attr_color_mode = ColorMode.ONOFF
|
||||||
|
_attr_supported_color_modes = {ColorMode.ONOFF}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_on(self):
|
def is_on(self):
|
||||||
"""Return true if device is on."""
|
"""Return true if device is on."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user