From 66003f5053e66bf06578fc35f54a4a8a9a632560 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Sat, 12 Nov 2022 16:33:20 +0100 Subject: [PATCH] Fix Spaces in the shelly update notification --- automations/update_notifications.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/automations/update_notifications.yaml b/automations/update_notifications.yaml index 48d25dd1..7c666687 100644 --- a/automations/update_notifications.yaml +++ b/automations/update_notifications.yaml @@ -23,12 +23,12 @@ data_template: title: "Shelly - Aggiornamento" message: > - "Sono disponibili aggiornamenti per i dispositivi Shelly:" - {% for entity_id in states.group.shelly.attributes.entity_id %} + Sono disponibili aggiornamenti per i dispositivi Shelly: + {%- for entity_id in states.group.shelly.attributes.entity_id -%} {% if is_state(entity_id, 'on') %} - -> {{ state_attr(entity_id, 'friendly_name')|replace(" - Aggiornamento Firmware", "") }}: {{ state_attr(entity_id, 'latest_stable_version') }} - {% endif %} - {%- endfor %} + -> {{ state_attr(entity_id, 'friendly_name')|replace(" - Aggiornamento Firmware", "") }}: {{ state_attr(entity_id, 'latest_version') }} + {%- endif -%} + {%- endfor -%} notification_id: "update" enable_persistent: true -- 2.47.3