Renault: fix climater error on Megane e-Tech
This commit is contained in:
parent
9ea7e84d9e
commit
03daaf725b
1 changed files with 2 additions and 2 deletions
|
|
@ -122,8 +122,8 @@ var _ api.VehicleClimater = (*Provider)(nil)
|
|||
func (v *Provider) Climater() (active bool, outsideTemp float64, targetTemp float64, err error) {
|
||||
res, err := v.hvacG()
|
||||
|
||||
// Zoe Ph2
|
||||
if err, ok := err.(request.StatusError); ok && err.HasStatus(http.StatusForbidden) {
|
||||
// Zoe Ph2, Megane e-tech
|
||||
if err, ok := err.(request.StatusError); ok && err.HasStatus(http.StatusForbidden, http.StatusBadGateway) {
|
||||
return false, 0, 0, api.ErrNotAvailable
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue