mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 08:05:06 +02:00
Validate target
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user