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:
1 parent
5ab1996d3f
commit
a02b69db38
17 files changed
+207
-33
No files matched your search
@@ -38,7 +38,7 @@ class MockConfig(config.AbstractConfig):
|
||||
pass
|
||||
|
||||
|
||||
DEFAULT_CONFIG = MockConfig()
|
||||
DEFAULT_CONFIG = MockConfig(None)
|
||||
|
||||
|
||||
def get_new_request(namespace, name, endpoint=None):
|
||||
|
||||
@@ -1012,7 +1012,7 @@ async def test_exclude_filters(hass):
|
||||
hass.states.async_set(
|
||||
'cover.deny', 'off', {'friendly_name': "Blocked cover"})
|
||||
|
||||
alexa_config = MockConfig()
|
||||
alexa_config = MockConfig(hass)
|
||||
alexa_config.should_expose = entityfilter.generate_filter(
|
||||
include_domains=[],
|
||||
include_entities=[],
|
||||
@@ -1045,7 +1045,7 @@ async def test_include_filters(hass):
|
||||
hass.states.async_set(
|
||||
'group.allow', 'off', {'friendly_name': "Allowed group"})
|
||||
|
||||
alexa_config = MockConfig()
|
||||
alexa_config = MockConfig(hass)
|
||||
alexa_config.should_expose = entityfilter.generate_filter(
|
||||
include_domains=['automation', 'group'],
|
||||
include_entities=['script.deny'],
|
||||
@@ -1072,7 +1072,7 @@ async def test_never_exposed_entities(hass):
|
||||
hass.states.async_set(
|
||||
'group.allow', 'off', {'friendly_name': "Allowed group"})
|
||||
|
||||
alexa_config = MockConfig()
|
||||
alexa_config = MockConfig(hass)
|
||||
alexa_config.should_expose = entityfilter.generate_filter(
|
||||
include_domains=['group'],
|
||||
include_entities=[],
|
||||
@@ -1155,7 +1155,7 @@ async def test_entity_config(hass):
|
||||
hass.states.async_set(
|
||||
'light.test_1', 'on', {'friendly_name': "Test light 1"})
|
||||
|
||||
alexa_config = MockConfig()
|
||||
alexa_config = MockConfig(hass)
|
||||
alexa_config.entity_config = {
|
||||
'light.test_1': {
|
||||
'name': 'Config name',
|
||||
|
||||
Reference in new issue
Block a user