diff --git a/core/loadpoint.go b/core/loadpoint.go index 61cb7a562..f9475a50c 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -188,12 +188,6 @@ func NewLoadpointFromConfig(log *util.Logger, settings settings.Settings, other lp.Soc.Poll.Mode = loadpoint.PollCharging } - // phase switching defaults based on charger capabilities - if !lp.hasPhaseSwitching() { - lp.phasesConfigured = 3 - lp.phases = 3 - } - // validate thresholds if lp.Enable.Threshold > lp.Disable.Threshold { lp.log.WARN.Printf("PV mode enable threshold (%.0fW) is larger than disable threshold (%.0fW)", lp.Enable.Threshold, lp.Disable.Threshold) @@ -250,6 +244,12 @@ func NewLoadpointFromConfig(log *util.Logger, settings settings.Settings, other lp.charger = dev.Instance() lp.configureChargerType(lp.charger) + // phase switching defaults based on charger capabilities + if !lp.hasPhaseSwitching() { + lp.phasesConfigured = 3 + lp.phases = 3 + } + return lp, nil }