core: keep limitSoc/limitEnergy on integrated device disconnect (#32623)
This commit is contained in:
parent
aaaa28a420
commit
19f750c417
1 changed files with 4 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue