Change example to use expand as a function (#16144)

expand does not work as a filter but only as a function. Adjust the example accordingly.
This commit is contained in:
kongo09 2021-01-10 21:40:13 +01:00 committed by GitHub
parent 9a423f33b2
commit fd30f1de66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,7 @@ The same thing can also be expressed as a filter:
{% raw %}
```text
{{ ['device_tracker.paulus', 'group.child_trackers'] | expand
{{ expand(['device_tracker.paulus', 'group.child_trackers'])
| selectattr("attributes.battery", 'defined')
| join(', ', attribute="attributes.battery") }}
```