Fix vehicle priority
This commit is contained in:
parent
12991e1786
commit
a5c2aea3ac
2 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ onIdentify:
|
|||
maxCurrent: {{ .maxCurrent }}
|
||||
{{- end }}
|
||||
{{- if (ne .priority "") }}
|
||||
- priority: {{ .priority }}
|
||||
priority: {{ .priority }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if ne (len .identifiers) 0 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue