Skip to content

Commit

Permalink
chore: reduce log spam from planner, if no plan active (evcc-io#11866)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimmiMeloni authored Jan 26, 2024
1 parent b09b074 commit d406b81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/loadpoint_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d406b81

Please sign in to comment.