mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Remove deprecated hass.components
usage in mobile_app (#111888)
This commit is contained in:
parent
f801ec45ce
commit
8770a50859
@ -93,7 +93,7 @@ class RegistrationsView(HomeAssistantView):
|
||||
|
||||
remote_ui_url = None
|
||||
if cloud.async_active_subscription(hass):
|
||||
with suppress(hass.components.cloud.CloudNotAvailable):
|
||||
with suppress(cloud.CloudNotAvailable):
|
||||
remote_ui_url = cloud.async_remote_ui_url(hass)
|
||||
|
||||
return self.json(
|
||||
|
@ -743,7 +743,7 @@ async def webhook_get_config(
|
||||
resp[CONF_CLOUDHOOK_URL] = config_entry.data[CONF_CLOUDHOOK_URL]
|
||||
|
||||
if cloud.async_active_subscription(hass):
|
||||
with suppress(hass.components.cloud.CloudNotAvailable):
|
||||
with suppress(cloud.CloudNotAvailable):
|
||||
resp[CONF_REMOTE_UI_URL] = cloud.async_remote_ui_url(hass)
|
||||
|
||||
webhook_id = config_entry.data[CONF_WEBHOOK_ID]
|
||||
|
Loading…
x
Reference in New Issue
Block a user