mirror of
https://github.com/home-assistant/core.git
synced 2026-09-02 10:17:26 -05:00
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:
committed by
Daniel Høyer Iversen
parent
150c8ac11c
commit
264bdc9d56
@@ -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