mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Fix some cloud things (#21977)
This commit is contained in:
parent
9416af5b56
commit
d3960bf745
@ -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']
|
||||
|
||||
|
||||
|
@ -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))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user