mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Fix MQTT lights tests using STATE_OFF
(#67011)
This commit is contained in:
parent
23fdf9eef8
commit
a51d9012ad
@ -3617,7 +3617,7 @@ async def test_sending_mqtt_brightness_command_with_template(hass, mqtt_mock):
|
|||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
state = hass.states.get("light.test")
|
state = hass.states.get("light.test")
|
||||||
assert state.state == STATE_OFF
|
assert state.state == STATE_UNKNOWN
|
||||||
|
|
||||||
await common.async_turn_on(hass, "light.test", brightness=100)
|
await common.async_turn_on(hass, "light.test", brightness=100)
|
||||||
|
|
||||||
@ -3655,7 +3655,7 @@ async def test_sending_mqtt_effect_command_with_template(hass, mqtt_mock):
|
|||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
state = hass.states.get("light.test")
|
state = hass.states.get("light.test")
|
||||||
assert state.state == STATE_OFF
|
assert state.state == STATE_UNKNOWN
|
||||||
|
|
||||||
await common.async_turn_on(hass, "light.test", effect="colorloop")
|
await common.async_turn_on(hass, "light.test", effect="colorloop")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user