From: Giorgio Ravera Date: Sat, 12 Nov 2022 15:33:20 +0000 (+0100) Subject: Fix Spaces in the shelly update notification X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=66003f5053e66bf06578fc35f54a4a8a9a632560;p=homeassistant.git Fix Spaces in the shelly update notification --- 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