Fix some cloud things (#21977)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2019-03-12 11:49:46 -07:00
1 parent 9416af5b56
commit d3960bf745
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -104,7 +104,7 @@ async def async_create_cloudhook(hass, webhook_id: str) -> str:
if not async_is_logged_in(hass):
raise CloudNotAvailable
hook = await hass.data[DOMAIN].cloudhooks.async_create(webhook_id)
hook = await hass.data[DOMAIN].cloudhooks.async_create(webhook_id, True)
return hook['cloudhook_url']
+1 -1
View File
@@ -367,7 +367,7 @@ async def websocket_update_prefs(hass, connection, msg):
async def websocket_hook_create(hass, connection, msg):
"""Handle request for account info."""
cloud = hass.data[DOMAIN]
hook = await cloud.cloudhooks.async_create(msg['webhook_id'])
hook = await cloud.cloudhooks.async_create(msg['webhook_id'], False)
connection.send_message(websocket_api.result_message(msg['id'], hook))