Fix flakey tests using the _get_diagnostics_for_config_entry helper (#115069)

pull/115091/head
J. Nick Koston 2024-04-06 21:58:23 -10:00 committed by GitHub
parent cb9352110c
commit b456a212eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ async def _get_diagnostics_for_config_entry(
) -> JsonObjectType: ) -> JsonObjectType:
"""Return the diagnostics config entry for the specified domain.""" """Return the diagnostics config entry for the specified domain."""
assert await async_setup_component(hass, "diagnostics", {}) assert await async_setup_component(hass, "diagnostics", {})
await hass.async_block_till_done()
client = await hass_client() client = await hass_client()
response = await client.get( response = await client.get(