Reset vehicle cache when charging stops for last soc update (#7238)

This commit is contained in:
andig 2023-04-06 15:37:12 +02:00 • committed by GitHub
parent 413f184562
commit fda399bb10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"
@ -415,6 +416,7 @@ func (lp *Loadpoint) evChargeStopHandler() {
}
// soc update reset
provider.ResetCached()
lp.socUpdated = time.Time{}
// reset pv enable/disable timer