Update LIFX brightness during long transitions (#24653)

This commit is contained in:
Anders Melchiorsen authored and Paulus Schoutsen committed 2019-06-20 13:24:45 -07:00
1 parent 58f14c5fe2
commit 39f2e49451
1 file changed
+2 -1
+2 -1
View File
@@ -484,7 +484,8 @@ class LIFXLight(Light):
@property
def brightness(self):
"""Return the brightness of this light between 0..255."""
return convert_16_to_8(self.bulb.color[2])
fade = self.bulb.power_level / 65535
return convert_16_to_8(int(fade * self.bulb.color[2]))
@property
def color_temp(self):