Hue: Don't change brightness when changing just color (#12940)
This commit is contained in:
parent
a99c8eb6c6
commit
b159e8acee
1 changed files with 0 additions and 1 deletions
|
@ -302,7 +302,6 @@ class HueLight(Light):
|
|||
xyb = color_util.color_RGB_to_xy(
|
||||
*(int(val) for val in kwargs[ATTR_RGB_COLOR]))
|
||||
command['xy'] = xyb[0], xyb[1]
|
||||
command['bri'] = xyb[2]
|
||||
elif ATTR_COLOR_TEMP in kwargs:
|
||||
temp = kwargs[ATTR_COLOR_TEMP]
|
||||
command['ct'] = max(self.min_mireds, min(temp, self.max_mireds))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue