Planner: continue a 100% plan as long as the vehicle is connected (#26203)

This commit is contained in:
andig 2025-12-27 14:05:55 +01:00 • committed by GitHub
parent 4f1c21cc00
commit 2977763ff7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -137,8 +137,8 @@ func (lp *Loadpoint) plannerActive() (active bool) {
maxPower := lp.EffectiveMaxPower()
requiredDuration := lp.GetPlanRequiredDuration(goal, maxPower)
if requiredDuration <= 0 {
// continue a 100% plan as long as the vehicle is charging
if lp.planActive && isSocBased && goal == 100 && lp.charging() {
// continue a 100% plan as long as the vehicle is connected
if lp.planActive && isSocBased && goal == 100 {
return true
}