Update LIFX brightness during long transitions (#24653)
This commit is contained in:
parent
58f14c5fe2
commit
39f2e49451
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue