Configure: remove resetOnDisconnect (#11212)
Some checks failed
Some checks failed
This commit is contained in:
parent
26ed34081d
commit
d2aaa82d43
3 changed files with 8 additions and 16 deletions
|
|
@ -17,15 +17,14 @@ type device struct {
|
|||
}
|
||||
|
||||
type loadpoint struct {
|
||||
Title string // TODO Perspektivisch können wir was aus core wiederverwenden, für später
|
||||
Charger string
|
||||
ChargeMeter string
|
||||
Vehicle string
|
||||
Mode string
|
||||
MinCurrent int
|
||||
MaxCurrent int
|
||||
Phases int
|
||||
ResetOnDisconnect string
|
||||
Title string // TODO Perspektivisch können wir was aus core wiederverwenden, für später
|
||||
Charger string
|
||||
ChargeMeter string
|
||||
Vehicle string
|
||||
Mode string
|
||||
MinCurrent int
|
||||
MaxCurrent int
|
||||
Phases int
|
||||
}
|
||||
|
||||
type globalConfig struct {
|
||||
|
|
|
|||
|
|
@ -57,7 +57,6 @@ loadpoints:
|
|||
phases: {{ .Phases }}
|
||||
mincurrent: {{ .MinCurrent }}
|
||||
maxcurrent: {{ .MaxCurrent }}
|
||||
resetOnDisconnect: {{ .ResetOnDisconnect }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
|
|
|
|||
|
|
@ -426,12 +426,6 @@ func (c *CmdConfigure) configureLoadpoints() {
|
|||
|
||||
fmt.Println()
|
||||
loadpoint.Mode = c.askValue(question{valueType: templates.TypeChargeModes, excludeNone: true})
|
||||
|
||||
fmt.Println()
|
||||
loadpoint.ResetOnDisconnect = c.askValue(question{
|
||||
label: c.localizedString("Loadpoint_ResetOnDisconnect"),
|
||||
valueType: templates.TypeBool,
|
||||
})
|
||||
c.configuration.AddLoadpoint(loadpoint)
|
||||
|
||||
fmt.Println()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue