From cab745f0e9dfdd5aa8bfbc1459d7feceeefa2ec9 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 7 Oct 2026 10:13:15 +0200 Subject: [PATCH] Fix flaky tplink stored credentials test (#184653) Co-authored-by: Claude Opus 5.5 --- tests/components/tplink/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/components/tplink/test_init.py b/tests/components/tplink/test_init.py index 3cb8f8bf8064..7133570d1b18 100644 --- a/tests/components/tplink/test_init.py +++ b/tests/components/tplink/test_init.py @@ -244,7 +244,7 @@ async def test_config_entry_with_stored_credentials( override_side_effect(mock_discovery["discover"], lambda *_, **__: {}), ): await hass.config_entries.async_setup(mock_config_entry.entry_id) - await hass.async_block_till_done() + await hass.async_block_till_done(wait_background_tasks=True) assert mock_config_entry.state is ConfigEntryState.LOADED config = DeviceConfig.from_dict(DEVICE_CONFIG_KLAP.to_dict()) config.http_client = "Foo"