Fix google assistant diagnostics test (#114111)

Improve google assistant diagnostics test
pull/113088/head^2
Jan Bouwhuis 2024-03-24 19:05:47 +01:00 committed by GitHub
parent d779333bef
commit c94d8c541b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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(