From 264bdc9d569fd81668fd87601d0a4a6e73025f51 Mon Sep 17 00:00:00 2001 From: Johan Bloemberg Date: Mon, 6 Feb 2017 11:32:51 +0100 Subject: [PATCH] Make brightness display work for rgb devices. (#5675) * Make brightness display work for rgb devices. Non rgbw devices return 255 for getWarmWhite255. This is part 2 to make the brightness slider work for these devices. https://github.com/Danielhiversen/flux_led/pull/25 * Query brightness property which return WW level or RGB brightness equivalent. https://github.com/Danielhiversen/flux_led/pull/25 --- homeassistant/components/light/flux_led.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/light/flux_led.py b/homeassistant/components/light/flux_led.py index 5a2cf93f45e..2b517425110 100644 --- a/homeassistant/components/light/flux_led.py +++ b/homeassistant/components/light/flux_led.py @@ -121,7 +121,7 @@ class FluxLight(Light): @property def brightness(self): """Return the brightness of this light between 0..255.""" - return self._bulb.getWarmWhite255() + return self._bulb.brightness @property def rgb_color(self):