From c94d8c541bca45c700676d4ac6c8f5ba7099a4ee Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Sun, 24 Mar 2024 19:05:47 +0100 Subject: [PATCH] Fix google assistant diagnostics test (#114111) Improve google assistant diagnostics test --- tests/components/google_assistant/test_diagnostics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/components/google_assistant/test_diagnostics.py b/tests/components/google_assistant/test_diagnostics.py index 27f741e3e49..26d91ce7920 100644 --- a/tests/components/google_assistant/test_diagnostics.py +++ b/tests/components/google_assistant/test_diagnostics.py @@ -35,16 +35,17 @@ async def test_diagnostics( ) -> None: """Test diagnostics v1.""" + await async_setup_component(hass, "homeassistant", {}) await setup.async_setup_component( hass, switch.DOMAIN, {"switch": [{"platform": "demo"}]} ) - await async_setup_component(hass, "homeassistant", {}) await async_setup_component( hass, ga.DOMAIN, {"google_assistant": DUMMY_CONFIG}, ) + await hass.async_block_till_done() config_entry = hass.config_entries.async_entries("google_assistant")[0] assert await get_diagnostics_for_config_entry(