From 8770a508590a49ec470bf3ebd01b95ed39e6f4d8 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Wed, 6 Mar 2024 09:11:31 +0100 Subject: [PATCH] Remove deprecated `hass.components` usage in mobile_app (#111888) --- homeassistant/components/mobile_app/http_api.py | 2 +- homeassistant/components/mobile_app/webhook.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/mobile_app/http_api.py b/homeassistant/components/mobile_app/http_api.py index 92bb473d51a..129a6a8b8d1 100644 --- a/homeassistant/components/mobile_app/http_api.py +++ b/homeassistant/components/mobile_app/http_api.py @@ -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( diff --git a/homeassistant/components/mobile_app/webhook.py b/homeassistant/components/mobile_app/webhook.py index 1a56b13ddc5..19335507b72 100644 --- a/homeassistant/components/mobile_app/webhook.py +++ b/homeassistant/components/mobile_app/webhook.py @@ -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]