1
0
mirror of https://github.com/elisspace/core.git synced 2026-09-01 08:53:56 +00:00

Update LIFX brightness during long transitions (#24653)

This commit is contained in:
Anders Melchiorsen
2019-06-20 22:24:45 +02:00
committed by Paulus Schoutsen
parent d5edbb424a
commit 79b10612aa

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