Fix error in webhook reconfiguration flow when cloudhook already exists (#183183)

This commit is contained in:
Manu
2026-09-30 11:33:37 +02:00
committed by GitHub
parent 806bb0055f
commit 88df866494
+2 -2
View File
@@ -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)