core: keep limitSoc/limitEnergy on integrated device disconnect (#32623)

This commit is contained in:
github-actions[bot] 2026-08-08 12:00:40 +00:00 • committed by GitHub
parent aaaa28a420
commit 19f750c417
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -628,8 +628,10 @@ func (lp *Loadpoint) evVehicleDisconnectHandler() {
}
// reset session
lp.SetLimitSoc(0)
lp.SetLimitEnergy(0)
if !lp.chargerHasFeature(api.IntegratedDevice) {
lp.SetLimitSoc(0)
lp.SetLimitEnergy(0)
}
// mark plan slot as inactive
// this will force a deletion of an outdated plan once plan time is expired in GetPlan()