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

Method clearSession

core/loadpoint_session.go:125–132  ·  view source on GitHub ↗

clearSession clears the charging session without persisting it.

()

Source from the content-addressed store, hash-verified

123
124// clearSession clears the charging session without persisting it.
125func (lp *Loadpoint) clearSession() {
126 // test guard
127 if lp.db == nil {
128 return
129 }
130
131 lp.session = nil
132}
133
134func (lp *Loadpoint) finalizeSessionEnergy() {
135 s := lp.session

Callers 2

resetHeatingSessionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected