Allow both http and https URLs

This commit is contained in:
Robbie Trencheny 2017-01-28 12:46:34 -08:00
parent 379ae11405
commit b7bb31cb95

View file

@ -59,7 +59,7 @@ class TwilioCallNotificationService(BaseNotificationService):
_LOGGER.info("At least 1 target is required")
return
if message.startswith("http://"):
if message.startswith(("http://", "https://")):
twimlet_url = message
else:
twimlet_url = "http://twimlets.com/message?Message="