Smart Hello: fix status detection (#18282)

This commit is contained in:
andig 2025-01-19 13:42:49 +01:00 • committed by GitHub
parent d0402122f8
commit 11917b72d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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