mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Improve deCONZ test_non_color_light_reports_color (#114021)
This commit is contained in:
parent
7d9fa64a66
commit
d3c68303b0
@ -1322,12 +1322,10 @@ async def test_non_color_light_reports_color(
|
||||
await mock_deconz_websocket(data=event_changed_light)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert hass.states.get("light.group").attributes[ATTR_COLOR_MODE] == ColorMode.XY
|
||||
# Bug is fixed if we reach this point
|
||||
# device won't have neither color temp nor color
|
||||
with pytest.raises(AssertionError):
|
||||
assert hass.states.get("light.group").attributes.get(ATTR_COLOR_TEMP) is None
|
||||
assert hass.states.get("light.group").attributes.get(ATTR_HS_COLOR) is None
|
||||
group = hass.states.get("light.group")
|
||||
assert group.attributes[ATTR_COLOR_MODE] == ColorMode.XY
|
||||
assert group.attributes[ATTR_HS_COLOR] == (40.571, 41.176)
|
||||
assert group.attributes.get(ATTR_COLOR_TEMP) is None
|
||||
|
||||
|
||||
async def test_verify_group_supported_features(
|
||||
|
Loading…
x
Reference in New Issue
Block a user