From cc24f44a6153db5e197f2f9e9fc4b7df008d2852 Mon Sep 17 00:00:00 2001 From: MarkusGH <34029447+MarkusGH@users.noreply.github.com> Date: Thu, 4 Apr 2024 19:25:24 +0200 Subject: [PATCH] chore: avoid warning (#13253) Add check for phaseSwitchCompleted to avoid potentially unnecessary warning --- core/loadpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/loadpoint.go b/core/loadpoint.go index 01731f5e8..eb5d58589 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -1072,7 +1072,7 @@ func (lp *Loadpoint) pvScalePhases(sitePower, minCurrent, maxCurrent float64) bo // - https://github.com/evcc-io/evcc/issues/2613 measuredPhases := lp.getMeasuredPhases() if phases > 0 && phases < measuredPhases { - if lp.chargerUpdateCompleted() { + if lp.chargerUpdateCompleted() && lp.phaseSwitchCompleted() { lp.log.WARN.Printf("ignoring inconsistent phases: %dp < %dp observed active", phases, measuredPhases) } lp.resetMeasuredPhases()