chore: don't log ErrNotAvailable

This commit is contained in:
andig 2026-06-15 20:03:43 +02:00
parent 51eb75d191
commit 0f915b9698

View file

@ -1780,13 +1780,13 @@ func (lp *Loadpoint) publishChargeProgress() {
telemetry.UpdateEnergy(added, addedGreen)
}
}
} else {
} else if !errors.Is(err, api.ErrNotAvailable) {
lp.log.ERROR.Printf("charge rater: %v", err)
}
if d, err := lp.chargeTimer.ChargeDuration(); err == nil {
lp.chargeDuration = d.Round(time.Second)
} else {
} else if !errors.Is(err, api.ErrNotAvailable) {
lp.log.ERROR.Printf("charge timer: %v", err)
}