EEBus: treat data not valid as unavailable (#32204)

This commit is contained in:
andig 2026-07-27 20:43:58 +02:00 • committed by GitHub
parent f55cc4d000
commit f85b3b9498
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ import (
)
func WrapError(err error) error {
if errors.Is(err, eebusapi.ErrDataNotAvailable) {
if errors.Is(err, eebusapi.ErrDataNotAvailable) || errors.Is(err, eebusapi.ErrDataInvalid) {
return api.ErrNotAvailable
}
return err