From 8a58457203877a3bbad88086172d93b57985c212 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 16 Mar 2023 11:07:42 +0100 Subject: [PATCH] Fix lingering timer in config entries test (#89787) --- tests/test_config_entries.py | 3 +++ 1 file changed, 3 insertions(+) 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"),