Renault: accept climater HTTP 404 errors

This commit is contained in:
andig 2024-08-28 08:13:59 +02:00
parent e6fb8ad69b
commit dbfaf01447

View file

@ -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
}