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), )