Fix light profiles for HomeMatic lights (#35882)

This commit is contained in:
Daniel Perna authored and Pascal Vizeli committed 2020-05-21 08:46:41 +00:00
1 parent b9ab6d1e10
commit c7008eb761
1 file changed
+1 -1
+1 -1
View File
@@ -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,