From ec89886fac7ea2223cbc91b298c8fbdc11372ba8 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Mon, 11 Mar 2024 19:04:44 +0100 Subject: [PATCH] Fix colormode attribute on grouped Hue light (#113071) --- homeassistant/components/hue/v2/group.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/homeassistant/components/hue/v2/group.py b/homeassistant/components/hue/v2/group.py index 32ac29b71f2..db30800a333 100644 --- a/homeassistant/components/hue/v2/group.py +++ b/homeassistant/components/hue/v2/group.py @@ -270,10 +270,7 @@ class GroupedHueLight(HueBaseEntity, LightEntity): self._dynamic_mode_active = lights_in_dynamic_mode > 0 self._attr_supported_color_modes = supported_color_modes # pick a winner for the current colormode - if ( - lights_with_color_temp_support > 0 - and lights_in_colortemp_mode == lights_with_color_temp_support - ): + if lights_with_color_temp_support > 0 and lights_in_colortemp_mode > 0: self._attr_color_mode = ColorMode.COLOR_TEMP elif lights_with_color_support > 0: self._attr_color_mode = ColorMode.XY