Fix light profiles for HomeMatic lights (#35882)

pull/35907/head
Daniel Perna 2020-05-21 10:35:04 +02:00 committed by Pascal Vizeli
parent b9ab6d1e10
commit c7008eb761
1 changed files with 1 additions and 1 deletions

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,