Fix cloud defaults (#19172)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2018-12-11 06:50:54 +01:00
1 parent 92e19f6001
commit 557720b094
4 files changed
+6 -9

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ def mock_cloudhooks(hass):
cloud.iot = Mock(async_send_message=Mock(return_value=mock_coro()))
cloud.cloudhook_create_url = 'https://webhook-create.url'
cloud.prefs = prefs.CloudPreferences(hass)
hass.loop.run_until_complete(cloud.prefs.async_initialize(True))
hass.loop.run_until_complete(cloud.prefs.async_initialize())
return cloudhooks.Cloudhooks(cloud)
+1 -1
View File
@@ -411,7 +411,7 @@ async def test_refresh_token_expired(hass):
async def test_webhook_msg(hass):
"""Test webhook msg."""
cloud = Cloud(hass, MODE_DEV, None, None)
await cloud.prefs.async_initialize(True)
await cloud.prefs.async_initialize()
await cloud.prefs.async_update(cloudhooks={
'hello': {
'webhook_id': 'mock-webhook-id',