diff --git a/tests/test_config_entries.py b/tests/test_config_entries.py index 12b77aded8f..36fbaff150c 100644 --- a/tests/test_config_entries.py +++ b/tests/test_config_entries.py @@ -3210,6 +3210,9 @@ async def test_setup_retrying_during_shutdown(hass: HomeAssistant) -> None: assert len(mock_call.return_value.mock_calls) == 0 + # Cleanup to avoid lingering timer + entry.async_cancel_retry_setup() + @pytest.mark.parametrize( ("matchers", "reason"),