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

11
core/loadpoint/error.go Normal file
View file

@ -0,0 +1,11 @@
package loadpoint
import (
"errors"
"github.com/evcc-io/evcc/api"
)
func AcceptableError(err error) bool {
return errors.Is(err, api.ErrAsleep) || errors.Is(err, api.ErrMustRetry)
}