Fix some cloud things (#21977)

This commit is contained in:
Paulus Schoutsen 2019-03-12 11:49:46 -07:00 committed by GitHub
parent 9416af5b56
commit d3960bf745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

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']

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))