chore: use defined consts

This commit is contained in:
andig 2022-03-18 13:17:24 +01:00
parent 897af677e5
commit 1a528af7a3

View file

@ -53,7 +53,7 @@ func NewAudiFromConfig(other map[string]interface{}) (api.Vehicle, error) {
return v, fmt.Errorf("login failed: %w", err)
}
api := vw.NewAPI(log, identity, "Audi", "DE")
api := vw.NewAPI(log, identity, audi.Brand, audi.Country)
api.Client.Timeout = cc.Timeout
cc.VIN, err = ensureVehicle(cc.VIN, api.Vehicles)