parent
9e8c391c81
commit
d98114d2ab
6 changed files with 33 additions and 9 deletions
|
@ -124,7 +124,10 @@ class WebhookFlowHandler(config_entries.ConfigFlow):
|
|||
|
||||
webhook_id = self.hass.components.webhook.async_generate_id()
|
||||
|
||||
if self.hass.components.cloud.async_active_subscription():
|
||||
if (
|
||||
"cloud" in self.hass.config.components
|
||||
and self.hass.components.cloud.async_active_subscription()
|
||||
):
|
||||
webhook_url = await self.hass.components.cloud.async_create_cloudhook(
|
||||
webhook_id
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue