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:
Robbie Trencheny 2016-10-01 22:19:17 -07:00 committed by Paulus Schoutsen
parent c189c05676
commit 646eaccd4d
13 changed files with 33 additions and 47 deletions

View file

@ -74,7 +74,7 @@ class TestNotifyGroup(unittest.TestCase):
data = self.events[-1].data
assert {
'message': 'Hello',
'target': 'unnamed device',
'target': ['unnamed device'],
'title': 'Test notification',
'data': {'hello': 'world', 'test': 'message'}
} == data