From ed3cdd8fb9aec598819152fd85de520218699461 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 1 Mar 2023 09:42:55 +0100 Subject: [PATCH] Fix lingering task in timeout test (#88953) --- tests/util/test_timeout.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/util/test_timeout.py b/tests/util/test_timeout.py index 60c87fa7434..e89c6cd3f02 100644 --- a/tests/util/test_timeout.py +++ b/tests/util/test_timeout.py @@ -273,6 +273,9 @@ async def test_mix_zone_timeout_trigger_global_cool_down() -> None: await asyncio.sleep(0.2) + # Cleanup lingering (cool_down) task after test is done + await asyncio.sleep(0.3) + async def test_simple_zone_timeout_freeze_without_timeout_cleanup( hass: HomeAssistant,