From c7008eb7615681b40448aacf87b91f038fad7e89 Mon Sep 17 00:00:00 2001 From: Daniel Perna Date: Thu, 21 May 2020 10:35:04 +0200 Subject: [PATCH] Fix light profiles for HomeMatic lights (#35882) --- homeassistant/components/homematic/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/homematic/light.py b/homeassistant/components/homematic/light.py index c7cfcc2ac8c..7ef632dae81 100644 --- a/homeassistant/components/homematic/light.py +++ b/homeassistant/components/homematic/light.py @@ -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,