Update LIFX brightness during long transitions (#24653)

pull/24665/head
Anders Melchiorsen 2019-06-20 22:24:45 +02:00 committed by Paulus Schoutsen
parent 58f14c5fe2
commit 39f2e49451
1 changed files with 2 additions and 1 deletions

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