OpenWB: rename phases config to phases1p3p
This commit is contained in:
parent
3b99a0d732
commit
f20b9bb58c
2 changed files with 7 additions and 7 deletions
|
|
@ -32,11 +32,11 @@ type OpenWB struct {
|
|||
// NewOpenWBFromConfig creates a new configurable charger
|
||||
func NewOpenWBFromConfig(other map[string]interface{}) (api.Charger, error) {
|
||||
cc := struct {
|
||||
mqtt.Config `mapstructure:",squash"`
|
||||
Topic string
|
||||
Timeout time.Duration
|
||||
ID int
|
||||
Phases, DC bool
|
||||
mqtt.Config `mapstructure:",squash"`
|
||||
Topic string
|
||||
Timeout time.Duration
|
||||
ID int
|
||||
Phases1p3p, DC bool
|
||||
}{
|
||||
Topic: openwb.RootTopic,
|
||||
Timeout: openwb.Timeout,
|
||||
|
|
@ -49,7 +49,7 @@ func NewOpenWBFromConfig(other map[string]interface{}) (api.Charger, error) {
|
|||
|
||||
log := util.NewLogger("openwb")
|
||||
|
||||
return NewOpenWB(log, cc.Config, cc.ID, cc.Topic, cc.Phases, cc.DC, cc.Timeout)
|
||||
return NewOpenWB(log, cc.Config, cc.ID, cc.Topic, cc.Phases1p3p, cc.DC, cc.Timeout)
|
||||
}
|
||||
|
||||
// NewOpenWB creates a new configurable charger
|
||||
|
|
|
|||
|
|
@ -25,5 +25,5 @@ render: |
|
|||
id: {{ .connector }} # loadpoint id
|
||||
{{- end }}
|
||||
{{- if ne .phases1p3p "false" }}
|
||||
phases: true
|
||||
phases1p3p: true
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue