From a6720f54b3830851add43750f68627120589a2bc Mon Sep 17 00:00:00 2001 From: William Scanlon Date: Fri, 29 Jan 2016 16:48:01 -0500 Subject: [PATCH] Fixed style errors --- homeassistant/components/notify/googlevoice.py | 12 ++++++------ requirements_all.txt | 3 +++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/notify/googlevoice.py b/homeassistant/components/notify/googlevoice.py index 09c1e368719..cc0a1e0d1cd 100644 --- a/homeassistant/components/notify/googlevoice.py +++ b/homeassistant/components/notify/googlevoice.py @@ -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() diff --git a/requirements_all.txt b/requirements_all.txt index 70ebbfe6006..26d8480a676 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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