From fd30f1de66dc1579a01c82687285b0d45999a279 Mon Sep 17 00:00:00 2001 From: kongo09 Date: Sun, 10 Jan 2021 21:40:13 +0100 Subject: [PATCH] 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. --- source/_docs/configuration/templating.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index 669968480b2..a9f94e3c5da 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -164,7 +164,7 @@ The same thing can also be expressed as a filter: {% raw %} ```text -{{ ['device_tracker.paulus', 'group.child_trackers'] | expand +{{ expand(['device_tracker.paulus', 'group.child_trackers']) | selectattr("attributes.battery", 'defined') | join(', ', attribute="attributes.battery") }} ```