Kia: fix status
Some checks failed
Some checks failed
This commit is contained in:
parent
bb4148b0ed
commit
c32d49094d
1 changed files with 3 additions and 1 deletions
|
|
@ -126,9 +126,11 @@ func (v *Provider) Status() (api.ChargeStatus, error) {
|
|||
if res.EvStatus.BatteryCharge {
|
||||
status = api.StatusC
|
||||
}
|
||||
} else {
|
||||
err = api.ErrNotAvailable
|
||||
}
|
||||
|
||||
return status, api.ErrNotAvailable
|
||||
return status, err
|
||||
}
|
||||
|
||||
var _ api.VehicleFinishTimer = (*Provider)(nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue