parent
d89d2d3b33
commit
8d433aa481
|
@ -91,6 +91,7 @@ class RegistrationsView(HomeAssistantView):
|
|||
)
|
||||
|
||||
remote_ui_url = None
|
||||
if cloud.async_active_subscription(hass):
|
||||
with suppress(hass.components.cloud.CloudNotAvailable):
|
||||
remote_ui_url = cloud.async_remote_ui_url(hass)
|
||||
|
||||
|
|
|
@ -693,6 +693,7 @@ async def webhook_get_config(
|
|||
if CONF_CLOUDHOOK_URL in config_entry.data:
|
||||
resp[CONF_CLOUDHOOK_URL] = config_entry.data[CONF_CLOUDHOOK_URL]
|
||||
|
||||
if cloud.async_active_subscription(hass):
|
||||
with suppress(hass.components.cloud.CloudNotAvailable):
|
||||
resp[CONF_REMOTE_UI_URL] = cloud.async_remote_ui_url(hass)
|
||||
|
||||
|
|
Loading…
Reference in New Issue