Cloud: Add Alexa report state (#24536)
* Cloud: Add Alexa report state * Lint * Lint * Only track state changes when we are logged in
This commit is contained in:
parent
5ab1996d3f
commit
a02b69db38
17 changed files with 207 additions and 33 deletions
|
@ -3,6 +3,8 @@ import pytest
|
|||
|
||||
from unittest.mock import patch
|
||||
|
||||
from homeassistant.components.cloud import prefs
|
||||
|
||||
from . import mock_cloud, mock_cloud_prefs
|
||||
|
||||
|
||||
|
@ -18,3 +20,11 @@ def mock_cloud_fixture(hass):
|
|||
"""Fixture for cloud component."""
|
||||
mock_cloud(hass)
|
||||
return mock_cloud_prefs(hass)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
async def cloud_prefs(hass):
|
||||
"""Fixture for cloud preferences."""
|
||||
cloud_prefs = prefs.CloudPreferences(hass)
|
||||
await cloud_prefs.async_initialize()
|
||||
return cloud_prefs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue