From 29ff8787c65f400bab6feaace69066915741d0c9 Mon Sep 17 00:00:00 2001 From: mfuchs1984 <57141790+mfuchs1984@users.noreply.github.com> Date: Tue, 25 Feb 2025 12:27:33 +0100 Subject: [PATCH] PSA: make climater robust against missing fields in json (#19163) --- vehicle/psa/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vehicle/psa/provider.go b/vehicle/psa/provider.go index d24277a9c..98dc53e11 100644 --- a/vehicle/psa/provider.go +++ b/vehicle/psa/provider.go @@ -132,7 +132,7 @@ var _ api.VehicleClimater = (*Provider)(nil) func (v *Provider) Climater() (bool, error) { res, err := v.statusG() if err == nil { - active := strings.ToLower(res.Preconditionning.AirConditioning.Status) != "disabled" + active := strings.ToLower(res.Preconditionning.AirConditioning.Status) == "enabled" return active, nil }