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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user