Audi: remove odometer for time being
This commit is contained in:
parent
4d58bc74a5
commit
bfc79bca64
1 changed files with 7 additions and 8 deletions
|
|
@ -9,7 +9,6 @@ import (
|
|||
"github.com/evcc-io/evcc/api"
|
||||
"github.com/evcc-io/evcc/util"
|
||||
"github.com/evcc-io/evcc/util/request"
|
||||
"github.com/evcc-io/evcc/vehicle/audi"
|
||||
"github.com/evcc-io/evcc/vehicle/vw"
|
||||
)
|
||||
|
||||
|
|
@ -20,7 +19,7 @@ import (
|
|||
type Audi struct {
|
||||
*embed
|
||||
*vw.Provider // provides the api implementations
|
||||
audiProvider *audi.Provider
|
||||
// audiProvider *audi.Provider
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
|
@ -80,14 +79,14 @@ func NewAudiFromConfig(other map[string]interface{}) (api.Vehicle, error) {
|
|||
}
|
||||
}
|
||||
|
||||
audiApi := audi.NewAPI(log, identity, "Audi", "DE")
|
||||
v.audiProvider = audi.NewProvider(audiApi, cc.VIN, cc.Cache)
|
||||
// audiApi := audi.NewAPI(log, identity, "Audi", "DE")
|
||||
// v.audiProvider = audi.NewProvider(audiApi, cc.VIN, cc.Cache)
|
||||
|
||||
return v, err
|
||||
}
|
||||
|
||||
var _ api.VehicleOdometer = (*Audi)(nil)
|
||||
// var _ api.VehicleOdometer = (*Audi)(nil)
|
||||
|
||||
func (v *Audi) Odometer() (float64, error) {
|
||||
return v.audiProvider.Odometer()
|
||||
}
|
||||
// func (v *Audi) Odometer() (float64, error) {
|
||||
// return v.audiProvider.Odometer()
|
||||
// }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue