Fix validate webhook requirements (#22248)
This commit is contained in:
1 parent
f64a99878f
commit
6526c68e2d
2 files changed
+29
No files matched your search
@@ -65,6 +65,8 @@ def validate_webhook_requirements(hass: HomeAssistantType) -> bool:
|
||||
"""Ensure HASS is setup properly to receive webhooks."""
|
||||
if cloud.async_active_subscription(hass):
|
||||
return True
|
||||
if hass.data[DOMAIN][CONF_CLOUDHOOK_URL] is not None:
|
||||
return True
|
||||
return get_webhook_url(hass).lower().startswith('https://')
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user