From 37c4552e1fa7aa72ac88cd42872fcf393b4db040 Mon Sep 17 00:00:00 2001 From: andig Date: Thu, 7 Nov 2024 21:30:32 +0100 Subject: [PATCH] Welcome Charge: fix templates (#17132) --- templates/definition/charger/keba-modbus.yaml | 2 +- templates/definition/vehicle/bmw.yaml | 2 +- templates/definition/vehicle/dacia.yaml | 2 +- templates/definition/vehicle/fiat.yaml | 2 +- templates/definition/vehicle/mini.yaml | 2 +- templates/definition/vehicle/seat-cupra.yaml | 2 +- templates/definition/vehicle/smart-hello.yaml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/definition/charger/keba-modbus.yaml b/templates/definition/charger/keba-modbus.yaml index 11cfb4829..dbaf2fddc 100644 --- a/templates/definition/charger/keba-modbus.yaml +++ b/templates/definition/charger/keba-modbus.yaml @@ -24,6 +24,6 @@ params: render: | type: keba-modbus {{- include "modbus" . }} - {{- if .welcomecharge }} + {{- if eq .welcomecharge "true" }} features: ["welcomecharge"] {{- end }} diff --git a/templates/definition/vehicle/bmw.yaml b/templates/definition/vehicle/bmw.yaml index 0fb06944b..04442f15d 100644 --- a/templates/definition/vehicle/bmw.yaml +++ b/templates/definition/vehicle/bmw.yaml @@ -24,6 +24,6 @@ render: | {{- if ne .region "EU" }} region: {{ .region }} {{- end }} - {{- if .welcomecharge }} + {{- if eq .welcomecharge "true" }} features: ["welcomecharge"] {{- end }} diff --git a/templates/definition/vehicle/dacia.yaml b/templates/definition/vehicle/dacia.yaml index c48e746c2..a62f44f0c 100644 --- a/templates/definition/vehicle/dacia.yaml +++ b/templates/definition/vehicle/dacia.yaml @@ -10,6 +10,6 @@ render: | type: dacia {{ include "vehicle-base" . }} {{ include "vehicle-identify" . }} - {{- if .welcomecharge }} + {{- if eq .welcomecharge "true" }} features: ["welcomecharge"] {{- end }} diff --git a/templates/definition/vehicle/fiat.yaml b/templates/definition/vehicle/fiat.yaml index d55272f7b..71923bf9d 100644 --- a/templates/definition/vehicle/fiat.yaml +++ b/templates/definition/vehicle/fiat.yaml @@ -18,6 +18,6 @@ render: | pin: {{ .pin }} # mandatory to deep refresh Soc {{- end }} {{ include "vehicle-identify" . }} - {{- if .welcomecharge }} + {{- if eq .welcomecharge "true" }} features: ["welcomecharge"] {{- end }} diff --git a/templates/definition/vehicle/mini.yaml b/templates/definition/vehicle/mini.yaml index 2e797d79a..6b1b7a12f 100644 --- a/templates/definition/vehicle/mini.yaml +++ b/templates/definition/vehicle/mini.yaml @@ -24,6 +24,6 @@ render: | {{- if ne .region "EU" }} region: {{ .region }} {{- end }} - {{- if .welcomecharge }} + {{- if eq .welcomecharge "true" }} features: ["welcomecharge"] {{- end }} diff --git a/templates/definition/vehicle/seat-cupra.yaml b/templates/definition/vehicle/seat-cupra.yaml index aacb774a8..6aab57ac0 100644 --- a/templates/definition/vehicle/seat-cupra.yaml +++ b/templates/definition/vehicle/seat-cupra.yaml @@ -12,6 +12,6 @@ render: | type: cupra {{ include "vehicle-base" . }} {{ include "vehicle-identify" . }} - {{- if .welcomecharge }} + {{- if eq .welcomecharge "true" }} features: ["welcomecharge"] {{- end }} diff --git a/templates/definition/vehicle/smart-hello.yaml b/templates/definition/vehicle/smart-hello.yaml index 064990d5e..61f799ac2 100644 --- a/templates/definition/vehicle/smart-hello.yaml +++ b/templates/definition/vehicle/smart-hello.yaml @@ -12,6 +12,6 @@ render: | type: smart-hello {{ include "vehicle-base" . }} {{ include "vehicle-identify" . }} - {{- if .welcomecharge }} + {{- if eq .welcomecharge "true" }} features: ["welcomecharge"] {{- end }}