mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Validate target
This commit is contained in:
parent
375faa9c91
commit
28f4283b40
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user