From b013d6ade9f9e65c727ac017e3e1aa26d2f2249b Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 2 May 2024 23:24:14 +0200 Subject: [PATCH] Fix flaky hassio test (#116658) --- tests/components/hassio/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/components/hassio/test_init.py b/tests/components/hassio/test_init.py index 572593d642b..ff038b620eb 100644 --- a/tests/components/hassio/test_init.py +++ b/tests/components/hassio/test_init.py @@ -818,7 +818,7 @@ async def test_device_registry_calls(hass: HomeAssistant) -> None: config_entry = MockConfigEntry(domain=DOMAIN, data={}, unique_id=DOMAIN) config_entry.add_to_hass(hass) assert await hass.config_entries.async_setup(config_entry.entry_id) - await hass.async_block_till_done() + await hass.async_block_till_done(wait_background_tasks=True) assert len(dev_reg.devices) == 6 supervisor_mock_data = {