Validate target
This commit is contained in:
1 parent
375faa9c91
commit
28f4283b40
1 file changed
+4
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user