mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +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:
|
) -> None:
|
||||||
"""Test diagnostics v1."""
|
"""Test diagnostics v1."""
|
||||||
|
|
||||||
|
await async_setup_component(hass, "homeassistant", {})
|
||||||
await setup.async_setup_component(
|
await setup.async_setup_component(
|
||||||
hass, switch.DOMAIN, {"switch": [{"platform": "demo"}]}
|
hass, switch.DOMAIN, {"switch": [{"platform": "demo"}]}
|
||||||
)
|
)
|
||||||
await async_setup_component(hass, "homeassistant", {})
|
|
||||||
|
|
||||||
await async_setup_component(
|
await async_setup_component(
|
||||||
hass,
|
hass,
|
||||||
ga.DOMAIN,
|
ga.DOMAIN,
|
||||||
{"google_assistant": DUMMY_CONFIG},
|
{"google_assistant": DUMMY_CONFIG},
|
||||||
)
|
)
|
||||||
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
config_entry = hass.config_entries.async_entries("google_assistant")[0]
|
config_entry = hass.config_entries.async_entries("google_assistant")[0]
|
||||||
assert await get_diagnostics_for_config_entry(
|
assert await get_diagnostics_for_config_entry(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user