Hue: Don't change brightness when changing just color (#12940)

This commit is contained in:
Paulus Schoutsen 2018-03-07 09:51:36 -08:00 committed by GitHub
parent a99c8eb6c6
commit b159e8acee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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