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
This commit is contained in:
Johan Bloemberg 2017-02-06 11:32:51 +01:00 committed by Daniel Høyer Iversen
parent 150c8ac11c
commit 264bdc9d56

View File

@ -121,7 +121,7 @@ class FluxLight(Light):
@property @property
def brightness(self): def brightness(self):
"""Return the brightness of this light between 0..255.""" """Return the brightness of this light between 0..255."""
return self._bulb.getWarmWhite255() return self._bulb.brightness
@property @property
def rgb_color(self): def rgb_color(self):