1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-27 04:03:49 +01:00

Describe Google Assistant events (#49141)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Paulus Schoutsen
2021-04-13 09:31:01 -07:00
committed by GitHub
parent 926c2489f0
commit 05aeff5591
7 changed files with 137 additions and 7 deletions

View File

@@ -225,3 +225,19 @@ def test_enabled_requires_valid_sub(hass, mock_expired_cloud_login, cloud_prefs)
)
assert not config.enabled
async def test_setup_integration(hass, mock_conf, cloud_prefs):
"""Test that we set up the integration if used."""
mock_conf._cloud.subscription_expired = False
assert "google_assistant" not in hass.config.components
await mock_conf.async_initialize()
assert "google_assistant" in hass.config.components
hass.config.components.remove("google_assistant")
await cloud_prefs.async_update()
await hass.async_block_till_done()
assert "google_assistant" in hass.config.components