Fix sending update when not logged in (#24624)
* Fix sending update when not logged in * Fix test
This commit is contained in:
1 parent
dbc4f285f1
commit
4e066f4681
2 files changed
+4
-4
No files matched your search
@@ -352,9 +352,9 @@ async def test_alexa_update_expose_trigger_sync(hass, cloud_prefs):
|
||||
assert to_remove == ['light.kitchen']
|
||||
|
||||
|
||||
async def test_alexa_entity_registry_sync(hass, cloud_prefs):
|
||||
async def test_alexa_entity_registry_sync(hass, mock_cloud_login, cloud_prefs):
|
||||
"""Test Alexa config responds to entity registry."""
|
||||
client.AlexaConfig(hass, ALEXA_SCHEMA({}), cloud_prefs, None)
|
||||
client.AlexaConfig(hass, ALEXA_SCHEMA({}), cloud_prefs, hass.data['cloud'])
|
||||
|
||||
with patch_sync_helper() as (to_update, to_remove):
|
||||
hass.bus.async_fire(EVENT_ENTITY_REGISTRY_UPDATED, {
|
||||
|
||||
Reference in new issue
Block a user