1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +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

@@ -618,12 +618,12 @@ async def test_emulated_color_temp_group(hass, enable_custom_integrations):
state = hass.states.get("light.test1")
assert state.state == STATE_ON
assert state.attributes[ATTR_COLOR_TEMP] == 200
assert ATTR_HS_COLOR not in state.attributes.keys()
assert ATTR_HS_COLOR in state.attributes.keys()
state = hass.states.get("light.test2")
assert state.state == STATE_ON
assert state.attributes[ATTR_COLOR_TEMP] == 200
assert ATTR_HS_COLOR not in state.attributes.keys()
assert ATTR_HS_COLOR in state.attributes.keys()
state = hass.states.get("light.test3")
assert state.state == STATE_ON