From 20ad9c31996c465391f95814d778620dd60ac105 Mon Sep 17 00:00:00 2001 From: vlebourl Date: Thu, 2 Jul 2020 11:24:30 +0200 Subject: [PATCH] [fix] color_RGB_to_hs is missing parameters Related Github issues: #96 --- custom_components/tahoma/light.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/custom_components/tahoma/light.py b/custom_components/tahoma/light.py index 032630379..c6c10c659 100644 --- a/custom_components/tahoma/light.py +++ b/custom_components/tahoma/light.py @@ -150,15 +150,7 @@ def update(self): if CORE_RED_COLOR_INTENSITY_STATE in self.tahoma_device.active_states: self._hs_color = color_util.color_RGB_to_hs( - [ - self.tahoma_device.active_states.get( - CORE_RED_COLOR_INTENSITY_STATE - ), - self.tahoma_device.active_states.get( - CORE_GREEN_COLOR_INTENSITY_STATE - ), - self.tahoma_device.active_states.get( - CORE_BLUE_COLOR_INTENSITY_STATE - ), - ] + self.tahoma_device.active_states.get(CORE_RED_COLOR_INTENSITY_STATE), + self.tahoma_device.active_states.get(CORE_GREEN_COLOR_INTENSITY_STATE), + self.tahoma_device.active_states.get(CORE_BLUE_COLOR_INTENSITY_STATE), )