chore: simplify

This commit is contained in:
andig 2025-08-19 15:18:03 +02:00
parent 9a3c5a67b2
commit 68c3a0ea8e

View file

@ -91,13 +91,13 @@ render: |
token: {{ .token }}
sensors:
soc: {{ .soc }}
{{ if .range }}range: {{ .range }}{{ end }}
{{ if .status }}status: {{ .status }}{{ end }}
{{ if .limitSoc }}limitSoc: {{ .limitSoc }}{{ end }}
{{ if .odometer }}odometer: {{ .odometer }}{{ end }}
{{ if .climater }}climater: {{ .climater }}{{ end }}
{{ if .finishTime }}finishTime: {{ .finishTime }}{{ end }}
{{ if or .start_charging .stop_charging .wakeup }}services:
{{ if .start_charging }}start_charging: {{ .start_charging }}{{ end }}
{{ if .stop_charging }}stop_charging: {{ .stop_charging }}{{ end }}
{{ if .wakeup }}wakeup: {{ .wakeup }}{{ end }}{{ end }}
range: {{ .range }}
status: {{ .status }}
limitSoc: {{ .limitSoc }}
odometer: {{ .odometer }}
climater: {{ .climater }}
finishTime: {{ .finishTime }}
services:
start_charging: {{ .start_charging }}
stop_charging: {{ .stop_charging }}
wakeup: {{ .wakeup }}