Update templating.markdown (#17086)

This commit is contained in:
Petro31 2021-03-29 07:12:11 -04:00 committed by GitHub
parent 21d6d81322
commit da4eecb74d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 %}
```