Skip to content

Commit

Permalink
Configure: remove resetOnDisconnect (#11212)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Dec 23, 2023
1 parent 26ed340 commit d2aaa82
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
17 changes: 8 additions & 9 deletions cmd/configure/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion cmd/configure/configure.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ loadpoints:
phases: {{ .Phases }}
mincurrent: {{ .MinCurrent }}
maxcurrent: {{ .MaxCurrent }}
resetOnDisconnect: {{ .ResetOnDisconnect }}
{{- end }}
{{- end }}

Expand Down
6 changes: 0 additions & 6 deletions cmd/configure/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d2aaa82

Please sign in to comment.