1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Convert color temperature to visible color in lights (#55219)

This commit is contained in:
J. Nick Koston
2021-08-25 14:56:36 -05:00
committed by GitHub
parent 59d401e7b7
commit e6e8d7eded
12 changed files with 49 additions and 24 deletions

View File

@@ -576,6 +576,7 @@ async def test_color_setting_color_light(hass, supported_color_modes):
{
light.ATTR_HS_COLOR: (20, 94),
light.ATTR_BRIGHTNESS: 200,
light.ATTR_COLOR_MODE: "hs",
"supported_color_modes": supported_color_modes,
},
),
@@ -634,6 +635,7 @@ async def test_color_setting_temperature_light(hass):
STATE_ON,
{
light.ATTR_MIN_MIREDS: 200,
light.ATTR_COLOR_MODE: "color_temp",
light.ATTR_COLOR_TEMP: 300,
light.ATTR_MAX_MIREDS: 500,
"supported_color_modes": ["color_temp"],