diff --git a/tests/components/rfxtrx/test_init.py b/tests/components/rfxtrx/test_init.py index 0fd7150e8fe..88a63e47cf1 100644 --- a/tests/components/rfxtrx/test_init.py +++ b/tests/components/rfxtrx/test_init.py @@ -212,6 +212,7 @@ async def test_reconnect(rfxtrx, hass: HomeAssistant) -> None: rfxtrx.event_callback, rfxtrxmod.ConnectionLost(), ) + await hass.async_block_till_done() assert config_entry.state is ConfigEntryState.LOADED rfxtrx.connect.call_count = 2