VW: raise odometer error if not expectedly not available
Some checks failed
Some checks failed
This commit is contained in:
parent
dd4ba0dd64
commit
1f4b7ab47d
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package core
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
|
|
@ -307,7 +308,7 @@ func (lp *Loadpoint) vehicleOdometer() {
|
|||
lp.updateSession(func(session *db.Session) {
|
||||
session.Odometer = odo
|
||||
})
|
||||
} else {
|
||||
} else if !errors.Is(err, api.ErrNotAvailable) {
|
||||
lp.log.ERROR.Printf("vehicle odometer: %v", err)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue