mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Fix Hue grouped light color_mode calculation (#63374)
This commit is contained in:
parent
c423b01eb0
commit
829ff9c423
@ -298,7 +298,10 @@ class GroupedHueLight(HueBaseEntity, LightEntity):
|
|||||||
supported_color_modes.add(COLOR_MODE_ONOFF)
|
supported_color_modes.add(COLOR_MODE_ONOFF)
|
||||||
self._attr_supported_color_modes = supported_color_modes
|
self._attr_supported_color_modes = supported_color_modes
|
||||||
# pick a winner for the current colormode
|
# pick a winner for the current colormode
|
||||||
if lights_in_colortemp_mode == lights_with_color_temp_support:
|
if (
|
||||||
|
lights_with_color_temp_support > 0
|
||||||
|
and lights_in_colortemp_mode == lights_with_color_temp_support
|
||||||
|
):
|
||||||
self._attr_color_mode = COLOR_MODE_COLOR_TEMP
|
self._attr_color_mode = COLOR_MODE_COLOR_TEMP
|
||||||
elif lights_with_color_support > 0:
|
elif lights_with_color_support > 0:
|
||||||
self._attr_color_mode = COLOR_MODE_XY
|
self._attr_color_mode = COLOR_MODE_XY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user