diff --git a/api/actionconfig.go b/api/actionconfig.go index 7cc6d1618..505a8f6d3 100644 --- a/api/actionconfig.go +++ b/api/actionconfig.go @@ -36,6 +36,9 @@ func (a ActionConfig) Merge(m ActionConfig) ActionConfig { if m.TargetSoc != nil { a.TargetSoc = m.TargetSoc } + if m.Priority != nil { + a.Priority = m.Priority + } return a } diff --git a/util/templates/includes/vehicle-identify.tpl b/util/templates/includes/vehicle-identify.tpl index ca54083eb..b425bdf99 100644 --- a/util/templates/includes/vehicle-identify.tpl +++ b/util/templates/includes/vehicle-identify.tpl @@ -17,7 +17,7 @@ onIdentify: maxCurrent: {{ .maxCurrent }} {{- end }} {{- if (ne .priority "") }} -- priority: {{ .priority }} + priority: {{ .priority }} {{- end }} {{- end }} {{- if ne (len .identifiers) 0 }}