From 00d11ff68ec30c784ad83babced7087e5c82f87f Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Tue, 27 Feb 2024 16:13:08 +0100 Subject: [PATCH] Fix rfxtrx flaky reconnect test (#111635) --- tests/components/rfxtrx/test_init.py | 1 + 1 file changed, 1 insertion(+) 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