Hide vehicle asleep error messages (#14113)

This commit is contained in:
andig 2024-05-29 18:19:18 +02:00 • committed by GitHub
parent de2cd864be
commit 3a3797c58c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 3 deletions

View file

@ -132,7 +132,9 @@ func (c *Coordinator) identifyVehicleByStatus(available []api.Vehicle) api.Vehic
if vs, ok := vehicle.(api.ChargeState); ok {
status, err := vs.Status()
if err != nil {
c.log.ERROR.Println("vehicle status:", err)
if !loadpoint.AcceptableError(err) {
c.log.ERROR.Println("vehicle status:", err)
}
continue
}