mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 18:36:51 +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
|
||||
{% 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 -%}
|
||||
{% endfor %}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user