Skip to content

Commit

Permalink
Update LIFX brightness during long transitions (#24653)
Browse files Browse the repository at this point in the history
  • Loading branch information
amelchio authored and balloob committed Jun 20, 2019
1 parent 58f14c5 commit 39f2e49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/components/lifx/light.py
Expand Up @@ -484,7 +484,8 @@ def supported_features(self):
@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):
Expand Down

0 comments on commit 39f2e49

Please sign in to comment.