Skip to content

Commit

Permalink
Reset vehicle cache when charging stops for last soc update (#7238)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Apr 6, 2023
1 parent 413f184 commit fda399b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/loadpoint.go
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/evcc-io/evcc/core/planner"
"github.com/evcc-io/evcc/core/soc"
"github.com/evcc-io/evcc/core/wrapper"
"github.com/evcc-io/evcc/provider"
"github.com/evcc-io/evcc/push"
"github.com/evcc-io/evcc/util"

Expand Down Expand Up @@ -415,6 +416,7 @@ func (lp *Loadpoint) evChargeStopHandler() {
}

// soc update reset
provider.ResetCached()
lp.socUpdated = time.Time{}

// reset pv enable/disable timer
Expand Down

0 comments on commit fda399b

Please sign in to comment.