chore: reduce log spam from planner, if no plan active (#11866)

This commit is contained in:
Michael Heß 2024-01-26 08:24:45 +01:00 • committed by GitHub
parent b09b0740db
commit d406b81be8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,6 +95,9 @@ func (lp *Loadpoint) plannerActive() (active bool) {
}()
planTime := lp.EffectivePlanTime()
if planTime.IsZero() {
return false
}
if lp.clock.Until(planTime) < 0 && !lp.planActive {
lp.deletePlan()
return false