diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index 40fa6242265..e4ae508a881 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -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 %} ```