Vehicle: suppress climater error log when vehicle is asleep (#30239)

This commit is contained in:
andig 2026-05-26 18:41:19 +02:00 • committed by GitHub
parent 2e682c689f
commit 4d64a073e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -372,7 +372,7 @@ func (lp *Loadpoint) vehicleClimateActive() bool {
return active
}
if !errors.Is(err, api.ErrNotAvailable) {
if !errors.Is(err, api.ErrNotAvailable) && !errors.Is(err, api.ErrAsleep) {
lp.log.ERROR.Printf("climater: %v", err)
}
}