docs: add choice (#20139)
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Demo (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled

This commit is contained in:
Michael Geers 2025-03-27 09:23:58 +01:00 • committed by GitHub
parent 36e8dce048
commit 782db8f9f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 3 deletions

View file

@ -36,8 +36,8 @@ params:
default: self-consumption
advanced: true
help:
de: Standardmodus für die aktive Batteriesteuerung (self-consumption oder time-of-use)
en: Default mode for active battery control (self-consumption or time-of-use)
de: Standardmodus für die aktive Batteriesteuerung
en: Default mode for active battery control
usages: ["battery"]
- name: chargepower
default: 3300

View file

@ -4,7 +4,14 @@
- {{ . }}
{{- end }}
{{- $help := localize .Help | replace "\n" " " -}}
{{- if $help }} # {{ $help }}{{- end }}{{- if not .IsRequired }}{{ if not $help }} # {{ else }} ({{ end }}optional{{ if $help }}){{ end }}{{ end }}
{{- $choices := join ", " .Choice -}}
{{- $optional := not .IsRequired -}}
{{- if or $help $choices $optional }} # {{end}}
{{- if $help }}{{ $help }} {{end}}
{{- if $choices }}[{{ $choices }}] {{end}}
{{- if $optional }}
{{- if or $help $choices }}(optional){{ else }}optional{{end }}
{{- end }}
{{- end }}
{{- define "header" }}