Fixed style errors

This commit is contained in:
William Scanlon 2016-01-29 16:48:01 -05:00
parent aaf75c7e45
commit a6720f54b3
2 changed files with 9 additions and 6 deletions

View file

@ -16,6 +16,7 @@ _LOGGER = logging.getLogger(__name__)
REQUIREMENTS = ['https://github.com/w1ll1am23/pygooglevoice-sms/archive/'
'7c5ee9969b97a7992fc86a753fe9f20e3ffa3f7c.zip#pygooglevoice-sms==0.0.1']
def get_service(hass, config):
""" Get the Google Voice SMS notification service. """
@ -26,7 +27,7 @@ def get_service(hass, config):
return None
return GoogleVoiceSMSNotificationService(config[CONF_USERNAME],
config[CONF_PASSWORD])
config[CONF_PASSWORD])
# pylint: disable=too-few-public-methods
@ -44,9 +45,8 @@ class GoogleVoiceSMSNotificationService(BaseNotificationService):
targets = kwargs.get(ATTR_TARGET)
self.voice.login(self.username, self.password)
for target in targets:
resp = self.voice.send_sms(target, message)
self.voice.logout()
for target in targets:
self.voice.send_sms(target, message)
self.voice.logout()

View file

@ -107,6 +107,9 @@ python-nest==2.6.0
# homeassistant.components.notify.free_mobile
freesms==0.1.0
# homeassistant.components.notify.googlevoice
https://github.com/w1ll1am23/pygooglevoice-sms/archive/7c5ee9969b97a7992fc86a753fe9f20e3ffa3f7c.zip#pygooglevoice-sms==0.0.1
# homeassistant.components.notify.pushbullet
pushbullet.py==0.9.0