mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 04:35:11 +02:00
Allow both http and https URLs
This commit is contained in:
@@ -59,7 +59,7 @@ class TwilioCallNotificationService(BaseNotificationService):
|
|||||||
_LOGGER.info("At least 1 target is required")
|
_LOGGER.info("At least 1 target is required")
|
||||||
return
|
return
|
||||||
|
|
||||||
if message.startswith("http://"):
|
if message.startswith(("http://", "https://")):
|
||||||
twimlet_url = message
|
twimlet_url = message
|
||||||
else:
|
else:
|
||||||
twimlet_url = "http://twimlets.com/message?Message="
|
twimlet_url = "http://twimlets.com/message?Message="
|
||||||
|
Reference in New Issue
Block a user