Remove deprecated hass.components usage in mobile_app (#111888)

This commit is contained in:
Jan-Philipp Benecke 2024-03-06 09:11:31 +01:00 committed by GitHub
parent f801ec45ce
commit 8770a50859
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ class RegistrationsView(HomeAssistantView):
remote_ui_url = None remote_ui_url = None
if cloud.async_active_subscription(hass): 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) remote_ui_url = cloud.async_remote_ui_url(hass)
return self.json( return self.json(

View File

@ -743,7 +743,7 @@ async def webhook_get_config(
resp[CONF_CLOUDHOOK_URL] = config_entry.data[CONF_CLOUDHOOK_URL] resp[CONF_CLOUDHOOK_URL] = config_entry.data[CONF_CLOUDHOOK_URL]
if cloud.async_active_subscription(hass): 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) resp[CONF_REMOTE_UI_URL] = cloud.async_remote_ui_url(hass)
webhook_id = config_entry.data[CONF_WEBHOOK_ID] webhook_id = config_entry.data[CONF_WEBHOOK_ID]