Wrap found target in list (#3809)
* Wrap found target in list * Fix test_messages_to_targets_routepull/3812/head
parent
b19ec21e88
commit
9b98d470c2
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue