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

Method repeatingPlanning

core/loadpoint.go:1044–1049  ·  view source on GitHub ↗

repeatingPlanning returns true if the current plan is a repeating plan

()

Source from the content-addressed store, hash-verified

1042
1043// repeatingPlanning returns true if the current plan is a repeating plan
1044func (lp *Loadpoint) repeatingPlanning() bool {
1045 if !lp.socBasedPlanning() {
1046 return false
1047 }
1048 return lp.getPlanId() > 1
1049}
1050
1051// vehicleHasSoc returns true if active vehicle supports returning soc, i.e. it is not an offline vehicle
1052func (lp *Loadpoint) vehicleHasSoc() bool {

Callers 1

finishPlanMethod · 0.95

Calls 2

socBasedPlanningMethod · 0.95
getPlanIdMethod · 0.95

Tested by

no test coverage detected