From 11917b72d813fdcf1b2c4f08d7f606e07118aaf5 Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 19 Jan 2025 13:42:49 +0100 Subject: [PATCH] Smart Hello: fix status detection (#18282) --- vehicle/smart/hello/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vehicle/smart/hello/provider.go b/vehicle/smart/hello/provider.go index 115aad4fa..36abcfcde 100644 --- a/vehicle/smart/hello/provider.go +++ b/vehicle/smart/hello/provider.go @@ -35,7 +35,7 @@ var _ api.ChargeState = (*Provider)(nil) // Status implements the api.ChargeState interface func (v *Provider) Status() (api.ChargeStatus, error) { res, err := v.statusG() - switch res.AdditionalVehicleStatus.ElectricVehicleStatus.ChargerState { + switch res.AdditionalVehicleStatus.ElectricVehicleStatus.StatusOfChargerConnection { case 1, 3: return api.StatusB, err case 2: