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

Method setPlanActive

core/loadpoint_plan.go:46–56  ·  view source on GitHub ↗

setPlanActive updates plan active flag

(active bool)

Source from the content-addressed store, hash-verified

44
45// setPlanActive updates plan active flag
46func (lp *Loadpoint) setPlanActive(active bool) {
47 if !active {
48 lp.planOverrunSent = false
49 lp.planSlotEnd = time.Time{}
50 lp.clearPlanLock()
51 }
52 if lp.planActive != active {
53 lp.planActive = active
54 lp.publish(keys.PlanActive, lp.planActive)
55 }
56}
57
58// finishPlan deletes the charging plan, either loadpoint or vehicle
59func (lp *Loadpoint) finishPlan() {

Callers 4

SetModeMethod · 0.95
setPlanEnergyMethod · 0.95
plannerActiveMethod · 0.95

Calls 2

clearPlanLockMethod · 0.95
publishMethod · 0.95

Tested by

no test coverage detected