MCPcopy Create free account
hub / github.com/evcc-io/evcc / resetPhaseTimer

Method resetPhaseTimer

core/loadpoint.go:1284–1291  ·  view source on GitHub ↗

resetPhaseTimer resets the phase switch timer to disabled state

()

Source from the content-addressed store, hash-verified

1282
1283// resetPhaseTimer resets the phase switch timer to disabled state
1284func (lp *Loadpoint) resetPhaseTimer() {
1285 if lp.phaseTimer.IsZero() {
1286 return
1287 }
1288
1289 lp.phaseTimer = time.Time{}
1290 lp.publishTimer(phaseTimer, 0, timerInactive)
1291}
1292
1293// scalePhasesRequired validates if fixed phase configuration matches enabled phases
1294func (lp *Loadpoint) scalePhasesRequired() bool {

Callers 4

pvScalePhasesMethod · 0.95
UpdateMethod · 0.95
SetModeMethod · 0.95
setPhasesMethod · 0.95

Calls 2

publishTimerMethod · 0.95
IsZeroMethod · 0.45

Tested by

no test coverage detected