Fix light profiles for HomeMatic lights (#35882)
parent
b9ab6d1e10
commit
c7008eb761
|
@ -111,7 +111,7 @@ class HMLight(HMDevice, LightEntity):
|
|||
):
|
||||
self._hmdevice.on(self._channel)
|
||||
|
||||
if ATTR_HS_COLOR in kwargs:
|
||||
if ATTR_HS_COLOR in kwargs and self.supported_features & SUPPORT_COLOR:
|
||||
self._hmdevice.set_hs_color(
|
||||
hue=kwargs[ATTR_HS_COLOR][0] / 360.0,
|
||||
saturation=kwargs[ATTR_HS_COLOR][1] / 100.0,
|
||||
|
|
Loading…
Reference in New Issue