Skip to content

Commit

Permalink
Smart Hello: fix status detection (#18282)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Jan 19, 2025
1 parent d040212 commit 11917b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vehicle/smart/hello/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 11917b7

Please sign in to comment.