mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 06:17:07 +00:00
Migrate wemo light tests to use Kelvin (#133031)
This commit is contained in:
parent
56db536883
commit
fd811c85e9
@ -11,7 +11,7 @@ from homeassistant.components.homeassistant import (
|
|||||||
)
|
)
|
||||||
from homeassistant.components.light import (
|
from homeassistant.components.light import (
|
||||||
ATTR_COLOR_MODE,
|
ATTR_COLOR_MODE,
|
||||||
ATTR_COLOR_TEMP,
|
ATTR_COLOR_TEMP_KELVIN,
|
||||||
ATTR_SUPPORTED_COLOR_MODES,
|
ATTR_SUPPORTED_COLOR_MODES,
|
||||||
DOMAIN as LIGHT_DOMAIN,
|
DOMAIN as LIGHT_DOMAIN,
|
||||||
ColorMode,
|
ColorMode,
|
||||||
@ -116,7 +116,7 @@ async def test_light_update_entity(
|
|||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
state = hass.states.get(wemo_entity.entity_id)
|
state = hass.states.get(wemo_entity.entity_id)
|
||||||
assert state.attributes.get(ATTR_COLOR_TEMP) == 432
|
assert state.attributes.get(ATTR_COLOR_TEMP_KELVIN) == 2314
|
||||||
assert state.attributes.get(ATTR_SUPPORTED_COLOR_MODES) == [ColorMode.COLOR_TEMP]
|
assert state.attributes.get(ATTR_SUPPORTED_COLOR_MODES) == [ColorMode.COLOR_TEMP]
|
||||||
assert state.attributes.get(ATTR_COLOR_MODE) == ColorMode.COLOR_TEMP
|
assert state.attributes.get(ATTR_COLOR_MODE) == ColorMode.COLOR_TEMP
|
||||||
assert state.state == STATE_ON
|
assert state.state == STATE_ON
|
||||||
|
Loading…
x
Reference in New Issue
Block a user