Migrate wilight light to ColorMode (#70906)

This commit is contained in:
epenet
2022-04-27 15:39:40 +02:00
committed by GitHub
parent 9281f46bcd
commit db296a6d1e

View File

@@ -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."""