mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix rgb conversion in fibaro light (#71476)
This commit is contained in:
parent
b2721d6596
commit
5b4764351d
@ -185,6 +185,6 @@ class FibaroLight(FibaroDevice, LightEntity):
|
|||||||
rgbw_list = [int(i) for i in rgbw_s.split(",")][:4]
|
rgbw_list = [int(i) for i in rgbw_s.split(",")][:4]
|
||||||
|
|
||||||
if self._attr_color_mode == ColorMode.RGB:
|
if self._attr_color_mode == ColorMode.RGB:
|
||||||
self._attr_rgb_color = tuple(*rgbw_list[:3])
|
self._attr_rgb_color = tuple(rgbw_list[:3])
|
||||||
else:
|
else:
|
||||||
self._attr_rgbw_color = tuple(rgbw_list)
|
self._attr_rgbw_color = tuple(rgbw_list)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user