mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +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. """
|
""" Send SMS to specified target user cell. """
|
||||||
|
|
||||||
targets = kwargs.get(ATTR_TARGET)
|
targets = kwargs.get(ATTR_TARGET)
|
||||||
|
|
||||||
|
if not isinstance(targets, list):
|
||||||
|
targets = [targets]
|
||||||
|
|
||||||
self.voice.login(self.username, self.password)
|
self.voice.login(self.username, self.password)
|
||||||
|
|
||||||
for target in targets:
|
for target in targets:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user