Fix validate webhook requirements (#22248)

This commit is contained in:
Andrew Sayre authored and Paulus Schoutsen committed 2019-03-21 09:13:20 -07:00
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://')