From 983d9d68e8f77bae33ef4f8f1ac8c31cddfa6dca Mon Sep 17 00:00:00 2001 From: jan iversen Date: Wed, 13 Sep 2023 15:18:12 +0200 Subject: [PATCH] review comment. --- tests/components/modbus/test_init.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/components/modbus/test_init.py b/tests/components/modbus/test_init.py index c2f3e639580..93669724272 100644 --- a/tests/components/modbus/test_init.py +++ b/tests/components/modbus/test_init.py @@ -884,7 +884,6 @@ async def test_stop_restart( caplog.set_level(logging.INFO) entity_id = f"{SENSOR_DOMAIN}.{TEST_ENTITY_NAME}".replace(" ", "_") - assert hass.states.get(entity_id).state in (STATE_UNKNOWN, STATE_UNAVAILABLE) hass.states.async_set(entity_id, 17) await hass.async_block_till_done() assert hass.states.get(entity_id).state == "17"