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:
1 parent
150c8ac11c
commit
264bdc9d56
1 file changed
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user