From be398e0a3fa5f9a6be6eb7d17cc7a718bfff56e6 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 31 Mar 2024 13:49:24 -1000 Subject: [PATCH] Fix flakey sonos test test_creating_entry_sets_up_media_player (#114539) --- tests/components/sonos/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/components/sonos/test_init.py b/tests/components/sonos/test_init.py index 77bf9a5d12b..97fdc27d461 100644 --- a/tests/components/sonos/test_init.py +++ b/tests/components/sonos/test_init.py @@ -51,7 +51,7 @@ async def test_creating_entry_sets_up_media_player( result = await hass.config_entries.flow.async_configure(result["flow_id"], {}) assert result["type"] == data_entry_flow.FlowResultType.CREATE_ENTRY - await hass.async_block_till_done() + await hass.async_block_till_done(wait_background_tasks=True) assert len(mock_setup.mock_calls) == 1