Fix issue when VIN is provided (#834)
This commit is contained in:
parent
711ec8357d
commit
33dc71938e
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ func (v *Identity) FindVehicle(accessTokens AccessTokens, vin string) (Vehicle,
|
|||
var foundVehicle VehicleResponse
|
||||
var foundEmobilityVehicle bool
|
||||
|
||||
if err == nil && vin == "" {
|
||||
if err == nil {
|
||||
if vin == "" && len(vehicles) == 1 {
|
||||
foundVehicle = vehicles[0]
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue