Disable flaky modbus test

This commit is contained in:
Erik 2023-09-13 20:13:25 +02:00
parent 9f3b1a8d44
commit daf3b0f182

View file

@ -863,6 +863,7 @@ async def test_shutdown(
assert caplog.text == ""
@pytest.mark.skip(reason="disabled because the test is flapping")
@pytest.mark.parametrize(
"do_config",
[
@ -884,6 +885,7 @@ async def test_stop_restart(
caplog.set_level(logging.INFO)
entity_id = f"{SENSOR_DOMAIN}.{TEST_ENTITY_NAME}".replace(" ", "_")
# The assert below is sometimes failing because the state is unavailable
assert hass.states.get(entity_id).state == STATE_UNKNOWN
hass.states.async_set(entity_id, 17)
await hass.async_block_till_done()