mirror of
https://github.com/home-assistant/core.git
synced 2025-11-20 08:20:12 +00:00
Update notify to expect a list of string targets instead of a single … (#3548)
* Update notify to expect a list of string targets instead of a single string * Actually do the thing I set out to do * Fix notify.group test to expect an array of targets * REST platform will only use the first target in the list * Update notify platforms to expect a list of targets * Update notify services.yaml
This commit is contained in:
committed by
Paulus Schoutsen
parent
c189c05676
commit
646eaccd4d
@@ -79,9 +79,6 @@ class AWSLambda(BaseNotificationService):
|
||||
_LOGGER.info("At least 1 target is required")
|
||||
return
|
||||
|
||||
if not isinstance(targets, list):
|
||||
targets = [targets]
|
||||
|
||||
for target in targets:
|
||||
cleaned_kwargs = dict((k, v) for k, v in kwargs.items() if v)
|
||||
payload = {"message": message}
|
||||
|
||||
Reference in New Issue
Block a user