From ab68a26000017ae845dbd1900e4d6ce450baaf4a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 25 Feb 2024 09:21:09 -1000 Subject: [PATCH] Fix flakey utility meter test (#111400) The test tooling would cancel setup at teardown because it was still setting up https://github.com/home-assistant/core/actions/runs/8039593463/job/21956908225?pr=111336 --- tests/components/utility_meter/test_init.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/components/utility_meter/test_init.py b/tests/components/utility_meter/test_init.py index 0ac8140c52dc5c..ee0290744ce925 100644 --- a/tests/components/utility_meter/test_init.py +++ b/tests/components/utility_meter/test_init.py @@ -347,6 +347,7 @@ async def test_both_cron_and_meter(hass: HomeAssistant) -> None: } assert await async_setup_component(hass, DOMAIN, config) + await hass.async_block_till_done() async def test_cron_and_offset(hass: HomeAssistant) -> None: