mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Wrap found target in list (#3809)
* Wrap found target in list * Fix test_messages_to_targets_route
This commit is contained in:
parent
b19ec21e88
commit
9b98d470c2
@ -100,7 +100,7 @@ def setup(hass, config):
|
|||||||
kwargs[ATTR_TITLE] = title.render()
|
kwargs[ATTR_TITLE] = title.render()
|
||||||
|
|
||||||
if targets.get(call.service) is not None:
|
if targets.get(call.service) is not None:
|
||||||
kwargs[ATTR_TARGET] = targets[call.service]
|
kwargs[ATTR_TARGET] = [targets[call.service]]
|
||||||
else:
|
else:
|
||||||
kwargs[ATTR_TARGET] = call.data.get(ATTR_TARGET)
|
kwargs[ATTR_TARGET] = call.data.get(ATTR_TARGET)
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ data_template:
|
|||||||
|
|
||||||
assert {
|
assert {
|
||||||
'message': 'my message',
|
'message': 'my message',
|
||||||
'target': 'test target id',
|
'target': ['test target id'],
|
||||||
'title': 'my title',
|
'title': 'my title',
|
||||||
'data': {'hello': 'world'}
|
'data': {'hello': 'world'}
|
||||||
} == data
|
} == data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user