Fix sending update when not logged in (#24624)

* Fix sending update when not logged in

* Fix test
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2019-06-19 13:58:00 -07:00
1 parent dbc4f285f1
commit 4e066f4681
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -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, {