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"