Loadpoint: update odometer on disconnect (#30361)

This commit is contained in:
andig 2026-05-31 11:05:16 +02:00 • committed by GitHub
parent 5fa62d520d
commit fd94f8a376
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -547,6 +547,9 @@ func (lp *Loadpoint) evVehicleDisconnectHandler() {
// re-read energy from charger and re-persist session if values improved
lp.finalizeSessionEnergy()
// re-read odometer to catch delayed update (#30225)
lp.vehicleOdometer()
// session is persisted during evChargeStopHandler which runs before
lp.clearSession()