Validate target

This commit is contained in:
William Scanlon 2016-01-29 22:04:02 -05:00
parent 375faa9c91
commit 28f4283b40

View File

@ -45,6 +45,10 @@ class GoogleVoiceSMSNotificationService(BaseNotificationService):
""" Send SMS to specified target user cell. """
targets = kwargs.get(ATTR_TARGET)
if not isinstance(targets, list):
targets = [targets]
self.voice.login(self.username, self.password)
for target in targets: