Smart Hello: fix status detection (#18282)
This commit is contained in:
parent
d0402122f8
commit
11917b72d8
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue