Fix mobile_app returning cloud URL when not subscribed (#83257)
fixes undefined
This commit is contained in:
parent
3044e78d43
commit
34fd64addf
2 changed files with 6 additions and 4 deletions
|
@ -91,8 +91,9 @@ class RegistrationsView(HomeAssistantView):
|
|||
)
|
||||
|
||||
remote_ui_url = None
|
||||
with suppress(hass.components.cloud.CloudNotAvailable):
|
||||
remote_ui_url = cloud.async_remote_ui_url(hass)
|
||||
if cloud.async_active_subscription(hass):
|
||||
with suppress(hass.components.cloud.CloudNotAvailable):
|
||||
remote_ui_url = cloud.async_remote_ui_url(hass)
|
||||
|
||||
return self.json(
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue