mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 15:57:06 +00:00
Fix google assistant diagnostics test (#114111)
Improve google assistant diagnostics test
This commit is contained in:
parent
d779333bef
commit
c94d8c541b
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user