chore: don't log ErrNotAvailable
This commit is contained in:
parent
51eb75d191
commit
0f915b9698
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue