Fix WLED light.turn_on with color_name failing on serialization

This commit is contained in:
Franck Nijhof
2026-05-21 15:55:54 +00:00
parent a1a76874fd
commit 6a7ecc6f4f
+2 -2
View File
@@ -254,10 +254,10 @@ class WLEDSegmentLight(WLEDEntity, LightEntity):
}
if ATTR_RGB_COLOR in kwargs:
data[ATTR_COLOR_PRIMARY] = kwargs[ATTR_RGB_COLOR]
data[ATTR_COLOR_PRIMARY] = tuple(kwargs[ATTR_RGB_COLOR])
if ATTR_RGBW_COLOR in kwargs:
data[ATTR_COLOR_PRIMARY] = kwargs[ATTR_RGBW_COLOR]
data[ATTR_COLOR_PRIMARY] = tuple(kwargs[ATTR_RGBW_COLOR])
if ATTR_COLOR_TEMP_KELVIN in kwargs:
data[ATTR_CCT] = kelvin_to_255(