Hide vehicle asleep error messages (#14113)
This commit is contained in:
parent
de2cd864be
commit
3a3797c58c
4 changed files with 17 additions and 3 deletions
11
core/loadpoint/error.go
Normal file
11
core/loadpoint/error.go
Normal 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue