mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00: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:
parent
150c8ac11c
commit
264bdc9d56
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user