mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user