mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Update LIFX brightness during long transitions (#24653)
This commit is contained in:
parent
58f14c5fe2
commit
39f2e49451
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user