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]