Minor style fixes

pull/5580/head
Robbie Trencheny 2017-01-28 12:45:52 -08:00
parent 8f418831a1
commit 379ae11405
1 changed files with 2 additions and 3 deletions

View File

@ -7,7 +7,6 @@ https://home-assistant.io/components/notify.twilio_call/
import logging import logging
import urllib import urllib
import voluptuous as vol import voluptuous as vol
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
@ -63,8 +62,8 @@ class TwilioCallNotificationService(BaseNotificationService):
if message.startswith("http://"): if message.startswith("http://"):
twimlet_url = message twimlet_url = message
else: else:
twimlet_url = 'http://twimlets.com/message?Message=' twimlet_url = "http://twimlets.com/message?Message="
twimlet_url += urllib.parse.quote(message, safe='') twimlet_url += urllib.parse.quote(message, safe="")
for target in targets: for target in targets:
try: try: