mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 13:56:53 +00:00
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:
parent
9a423f33b2
commit
fd30f1de66
@ -164,7 +164,7 @@ The same thing can also be expressed as a filter:
|
|||||||
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
```text
|
```text
|
||||||
{{ ['device_tracker.paulus', 'group.child_trackers'] | expand
|
{{ expand(['device_tracker.paulus', 'group.child_trackers'])
|
||||||
| selectattr("attributes.battery", 'defined')
|
| selectattr("attributes.battery", 'defined')
|
||||||
| join(', ', attribute="attributes.battery") }}
|
| join(', ', attribute="attributes.battery") }}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user