From 88df86649480b72adc5fe7826fa99efa99a56463 Mon Sep 17 00:00:00 2001 From: Manu Date: Wed, 30 Sep 2026 11:33:37 +0200 Subject: [PATCH] Fix error in webhook reconfiguration flow when cloudhook already exists (#183183) --- homeassistant/helpers/config_entry_flow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/helpers/config_entry_flow.py b/homeassistant/helpers/config_entry_flow.py index e6d195f68d40..6911ff6c3f5f 100644 --- a/homeassistant/helpers/config_entry_flow.py +++ b/homeassistant/helpers/config_entry_flow.py @@ -275,7 +275,7 @@ class WebhookFlowHandler(config_entries.ConfigFlow): # Local import to be sure cloud is loaded and setup from homeassistant.components.cloud import ( # noqa: PLC0415 async_active_subscription, - async_create_cloudhook, + async_get_or_create_cloudhook, async_is_connected, ) @@ -300,7 +300,7 @@ class WebhookFlowHandler(config_entries.ConfigFlow): translation_domain=HOMEASSISTANT_DOMAIN, ) - webhook_url = await async_create_cloudhook(self.hass, webhook_id) + webhook_url = await async_get_or_create_cloudhook(self.hass, webhook_id) cloudhook = True else: webhook_url = async_generate_url(self.hass, webhook_id)