Renault: accept climater HTTP 404 errors
This commit is contained in:
parent
e6fb8ad69b
commit
dbfaf01447
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ func (v *Provider) Climater() (bool, error) {
|
|||
res, err := v.hvacG()
|
||||
|
||||
// Zoe Ph2, Megane e-tech
|
||||
if err, ok := err.(request.StatusError); ok && err.HasStatus(http.StatusForbidden, http.StatusBadGateway) {
|
||||
if err, ok := err.(request.StatusError); ok && err.HasStatus(http.StatusForbidden, http.StatusNotFound, http.StatusBadGateway) {
|
||||
return false, api.ErrNotAvailable
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue