mirror of
https://github.com/home-assistant/core.git
synced 2026-08-28 02:24:46 -05:00
Fix WLED light.turn_on with color_name failing on serialization
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user