mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-12 20:06:52 +00:00
Update templating.markdown (#17086)
This commit is contained in:
parent
21d6d81322
commit
da4eecb74d
@ -186,7 +186,7 @@ The `expand` function and filter can be used to sort entities and expand groups.
|
|||||||
|
|
||||||
```text
|
```text
|
||||||
{% for tracker in expand('device_tracker.paulus', 'group.child_trackers') %}
|
{% for tracker in expand('device_tracker.paulus', 'group.child_trackers') %}
|
||||||
{{ state_attr(tracker, 'battery') }}
|
{{ state_attr(tracker.entity_id, 'battery') }}
|
||||||
{%- if not loop.last %}, {% endif -%}
|
{%- if not loop.last %}, {% endif -%}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user