From 39f2e494514a3785e9f1a2469601a2d920c69229 Mon Sep 17 00:00:00 2001 From: Anders Melchiorsen Date: Thu, 20 Jun 2019 22:24:45 +0200 Subject: [PATCH] Update LIFX brightness during long transitions (#24653) --- homeassistant/components/lifx/light.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/lifx/light.py b/homeassistant/components/lifx/light.py index 5f462941062480..42d9ecd8c9f545 100644 --- a/homeassistant/components/lifx/light.py +++ b/homeassistant/components/lifx/light.py @@ -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):