Wrap found target in list (#3809)

* Wrap found target in list

* Fix test_messages_to_targets_route
pull/3812/head
Robbie Trencheny 2016-10-10 22:31:15 -07:00 committed by Paulus Schoutsen
parent b19ec21e88
commit 9b98d470c2
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ def setup(hass, config):
kwargs[ATTR_TITLE] = title.render()
if targets.get(call.service) is not None:
kwargs[ATTR_TARGET] = targets[call.service]
kwargs[ATTR_TARGET] = [targets[call.service]]
else:
kwargs[ATTR_TARGET] = call.data.get(ATTR_TARGET)

View File

@ -152,7 +152,7 @@ data_template:
assert {
'message': 'my message',
'target': 'test target id',
'target': ['test target id'],
'title': 'my title',
'data': {'hello': 'world'}
} == data