From 48f186368a67da0a1bdd964953860a87e98a19e2 Mon Sep 17 00:00:00 2001 From: Paul Tarjan Date: Wed, 10 Dec 2025 09:07:58 -0700 Subject: [PATCH] Fix flaky playstation_network test_image_platform test (#158296) --- tests/components/playstation_network/test_image.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/components/playstation_network/test_image.py b/tests/components/playstation_network/test_image.py index 0dc52646d9e..b0d4d1ac79a 100644 --- a/tests/components/playstation_network/test_image.py +++ b/tests/components/playstation_network/test_image.py @@ -75,8 +75,7 @@ async def test_image_platform( freezer.tick(timedelta(seconds=30)) async_fire_time_changed(hass) - await hass.async_block_till_done() - await hass.async_block_till_done() + await hass.async_block_till_done(wait_background_tasks=True) assert (state := hass.states.get("image.testuser_avatar")) assert state.state == "2025-06-16T00:00:30+00:00"