From 84f58543ef2a9da7a7cf38f44e68e627a5d3ed83 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 5 Apr 2023 14:09:15 +0200 Subject: [PATCH] Fix lingering timers in image processing tests (#90829) --- tests/components/image_processing/test_init.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/components/image_processing/test_init.py b/tests/components/image_processing/test_init.py index 4b2f243aba6..0c35da4d3cb 100644 --- a/tests/components/image_processing/test_init.py +++ b/tests/components/image_processing/test_init.py @@ -58,6 +58,7 @@ async def test_setup_component(hass: HomeAssistant) -> None: with assert_setup_component(1, ip.DOMAIN): assert await async_setup_component(hass, ip.DOMAIN, config) + await hass.async_block_till_done() async def test_setup_component_with_service(hass: HomeAssistant) -> None: @@ -66,6 +67,7 @@ async def test_setup_component_with_service(hass: HomeAssistant) -> None: with assert_setup_component(1, ip.DOMAIN): assert await async_setup_component(hass, ip.DOMAIN, config) + await hass.async_block_till_done() assert hass.services.has_service(ip.DOMAIN, "scan")