review comment.

This commit is contained in:
jan iversen
2023-09-13 15:18:12 +02:00
parent 1f59ff510c
commit 983d9d68e8

View File

@@ -884,7 +884,6 @@ async def test_stop_restart(
caplog.set_level(logging.INFO) caplog.set_level(logging.INFO)
entity_id = f"{SENSOR_DOMAIN}.{TEST_ENTITY_NAME}".replace(" ", "_") 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) hass.states.async_set(entity_id, 17)
await hass.async_block_till_done() await hass.async_block_till_done()
assert hass.states.get(entity_id).state == "17" assert hass.states.get(entity_id).state == "17"