mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Hue: Don't change brightness when changing just color (#12940)
This commit is contained in:
parent
a99c8eb6c6
commit
b159e8acee
@ -302,7 +302,6 @@ class HueLight(Light):
|
|||||||
xyb = color_util.color_RGB_to_xy(
|
xyb = color_util.color_RGB_to_xy(
|
||||||
*(int(val) for val in kwargs[ATTR_RGB_COLOR]))
|
*(int(val) for val in kwargs[ATTR_RGB_COLOR]))
|
||||||
command['xy'] = xyb[0], xyb[1]
|
command['xy'] = xyb[0], xyb[1]
|
||||||
command['bri'] = xyb[2]
|
|
||||||
elif ATTR_COLOR_TEMP in kwargs:
|
elif ATTR_COLOR_TEMP in kwargs:
|
||||||
temp = kwargs[ATTR_COLOR_TEMP]
|
temp = kwargs[ATTR_COLOR_TEMP]
|
||||||
command['ct'] = max(self.min_mireds, min(temp, self.max_mireds))
|
command['ct'] = max(self.min_mireds, min(temp, self.max_mireds))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user