From b456a212eb774c2e366369fd0f5aebcd18e8f147 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 6 Apr 2024 21:58:23 -1000 Subject: [PATCH] Fix flakey tests using the _get_diagnostics_for_config_entry helper (#115069) --- tests/components/diagnostics/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/components/diagnostics/__init__.py b/tests/components/diagnostics/__init__.py index 81d62e7c2fe..d241ca09f41 100644 --- a/tests/components/diagnostics/__init__.py +++ b/tests/components/diagnostics/__init__.py @@ -19,6 +19,7 @@ async def _get_diagnostics_for_config_entry( ) -> JsonObjectType: """Return the diagnostics config entry for the specified domain.""" assert await async_setup_component(hass, "diagnostics", {}) + await hass.async_block_till_done() client = await hass_client() response = await client.get(