From 9cc2f25c9fb357ebcf273b3ed8ef2e116ebe016d Mon Sep 17 00:00:00 2001 From: Sanjoy Ghosh Date: Sat, 24 Feb 2024 01:01:37 +0530 Subject: [PATCH] Bug Fix --- custom_components/dirigera_platform/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/dirigera_platform/light.py b/custom_components/dirigera_platform/light.py index 9584581..4cb8081 100644 --- a/custom_components/dirigera_platform/light.py +++ b/custom_components/dirigera_platform/light.py @@ -160,7 +160,7 @@ def turn_on(self, **kwargs): logger.debug("Request to set color HS") hs_tuple = kwargs[ATTR_HS_COLOR] self._color_hue = hs_tuple[0] - self._color_saturation = hs_tuple[1]/100 + self._color_saturation = hs_tuple[1] # Saturation is 0 - 1 at IKEA self._json_data.set_light_color(self._color_hue, self._color_saturation/100)