chore: route climaterdisabled through vehicle-features include (#30615)
This commit is contained in:
parent
b479b34165
commit
7be56a0ce4
8 changed files with 11 additions and 42 deletions
|
|
@ -22,11 +22,7 @@ params:
|
|||
render: |
|
||||
type: custom
|
||||
{{- include "vehicle-common" . }}
|
||||
features:
|
||||
- offline
|
||||
{{- if eq .climaterdisabled "true" }}
|
||||
- climaterdisabled
|
||||
{{- end }}
|
||||
{{ include "vehicle-features" (merge (dict "basefeatures" (list "offline")) .) }}
|
||||
soc:
|
||||
source: const
|
||||
value: 0
|
||||
|
|
|
|||
|
|
@ -36,8 +36,4 @@ render: |
|
|||
source: mqtt
|
||||
topic: mazda2mqtt/{{ .vin }}/chargeInfo/drivingRangeKm
|
||||
timeout: {{ .timeout }}
|
||||
features:
|
||||
- streaming
|
||||
{{- if eq .climaterdisabled "true" }}
|
||||
- climaterdisabled
|
||||
{{- end }}
|
||||
{{ include "vehicle-features" (merge (dict "basefeatures" (list "streaming")) .) }}
|
||||
|
|
|
|||
|
|
@ -17,17 +17,7 @@ params:
|
|||
render: |
|
||||
type: custom
|
||||
{{- include "vehicle-common" . }}
|
||||
features:
|
||||
- offline
|
||||
{{- if eq .coarsecurrent "true" }}
|
||||
- coarsecurrent
|
||||
{{- end }}
|
||||
{{- if eq .welcomecharge "true" }}
|
||||
- welcomecharge
|
||||
{{- end }}
|
||||
{{- if eq .climaterdisabled "true" }}
|
||||
- climaterdisabled
|
||||
{{- end }}
|
||||
{{ include "vehicle-features" (merge (dict "basefeatures" (list "offline")) .) }}
|
||||
soc:
|
||||
source: const
|
||||
value: 0
|
||||
|
|
|
|||
|
|
@ -91,9 +91,5 @@ render: |
|
|||
commandProxy: {{ .commandProxy }}
|
||||
proxyToken: {{ .proxyToken }}
|
||||
{{ include "vehicle-common" . }}
|
||||
features:
|
||||
- coarsecurrent
|
||||
{{- if eq .climaterdisabled "true" }}
|
||||
- climaterdisabled
|
||||
{{- end }}
|
||||
{{ include "vehicle-features" (merge (dict "basefeatures" (list "coarsecurrent")) .) }}
|
||||
cache: {{ .cache }}
|
||||
|
|
|
|||
|
|
@ -44,8 +44,4 @@ render: |
|
|||
limitsoc:
|
||||
{{- include "teslafi_source" . | indent 2 }}
|
||||
jq: .charge_limit_soc
|
||||
features:
|
||||
- coarsecurrent
|
||||
{{- if eq .climaterdisabled "true" }}
|
||||
- climaterdisabled
|
||||
{{- end }}
|
||||
{{ include "vehicle-features" (merge (dict "basefeatures" (list "coarsecurrent")) .) }}
|
||||
|
|
|
|||
|
|
@ -69,8 +69,4 @@ render: |
|
|||
source: mqtt
|
||||
topic: teslamate/cars/{{ .id }}/is_preconditioning
|
||||
timeout: {{ .timeout }}
|
||||
features:
|
||||
- coarsecurrent
|
||||
{{- if eq .climaterdisabled "true" }}
|
||||
- climaterdisabled
|
||||
{{- end }}
|
||||
{{ include "vehicle-features" (merge (dict "basefeatures" (list "coarsecurrent")) .) }}
|
||||
|
|
|
|||
|
|
@ -116,8 +116,4 @@ render: |
|
|||
headers:
|
||||
Authorization: Bearer {{ .token }}
|
||||
method: POST
|
||||
features:
|
||||
- coarsecurrent
|
||||
{{- if eq .climaterdisabled "true" }}
|
||||
- climaterdisabled
|
||||
{{- end }}
|
||||
{{ include "vehicle-features" (merge (dict "basefeatures" (list "coarsecurrent")) .) }}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
{{ define "vehicle-features" }}
|
||||
{{- if or (eq .coarsecurrent "true") (eq .welcomecharge "true") (eq .streaming "true") (eq .climaterdisabled "true") }}
|
||||
{{- if or .basefeatures (eq .coarsecurrent "true") (eq .welcomecharge "true") (eq .streaming "true") (eq .climaterdisabled "true") }}
|
||||
features:
|
||||
{{- range .basefeatures }}
|
||||
- {{ . }}
|
||||
{{- end }}
|
||||
{{- if eq .coarsecurrent "true" }}
|
||||
- coarsecurrent
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue