From a51d9012ad058d0feda51c6257a0c2fa14a4f9b6 Mon Sep 17 00:00:00 2001 From: Mike Degatano Date: Tue, 22 Feb 2022 01:52:31 -0500 Subject: [PATCH] Fix MQTT lights tests using `STATE_OFF` (#67011) --- tests/components/mqtt/test_light.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/components/mqtt/test_light.py b/tests/components/mqtt/test_light.py index d6125729191..ee59928c0c8 100644 --- a/tests/components/mqtt/test_light.py +++ b/tests/components/mqtt/test_light.py @@ -3617,7 +3617,7 @@ async def test_sending_mqtt_brightness_command_with_template(hass, mqtt_mock): await hass.async_block_till_done() 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) @@ -3655,7 +3655,7 @@ async def test_sending_mqtt_effect_command_with_template(hass, mqtt_mock): await hass.async_block_till_done() 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")