Skip to content

Commit

Permalink
chore: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jan 4, 2023
1 parent efa7e1b commit cf38959
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion vehicle/bluelink/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

const refreshTimeout = 2 * time.Minute

// Provider implements the Kia/Hyundai bluelink api.
// Provider implements the vehicle api.
// Based on https://github.com/Hacksore/bluelinky.
type Provider struct {
statusG func() (VehicleStatus, error)
Expand Down
2 changes: 1 addition & 1 deletion vehicle/bmw/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

const kmPerMile = 1.609344

// Provider implements the evcc vehicle api
// Provider implements the vehicle api
type Provider struct {
statusG func() (VehicleStatus, error)
}
Expand Down
2 changes: 1 addition & 1 deletion vehicle/mercedes/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/evcc-io/evcc/provider"
)

// Provider implements the evcc vehicle api
// Provider implements the vehicle api
type Provider struct {
chargerG func() (EVResponse, error)
rangeG func() (EVResponse, error)
Expand Down
2 changes: 1 addition & 1 deletion vehicle/skoda/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/evcc-io/evcc/provider"
)

// Provider implements the evcc vehicle api
// Provider implements the vehicle api
type Provider struct {
statusG func() (StatusResponse, error)
chargerG func() (ChargerResponse, error)
Expand Down
4 changes: 3 additions & 1 deletion vehicle/volvo/connected/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/evcc-io/evcc/provider"
)

// Provider implements the evcc vehicle api
// Provider implements the vehicle api
type Provider struct {
statusG func() (RechargeStatus, error)
}
Expand Down Expand Up @@ -51,6 +51,8 @@ func (v *Provider) Status() (api.ChargeStatus, error) {
return status, err
}

var _ api.VehicleRange = (*Provider)(nil)

// Range implements the api.VehicleRange interface
func (v *Provider) Range() (rng int64, err error) {
res, err := v.statusG()
Expand Down
2 changes: 1 addition & 1 deletion vehicle/vw/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/samber/lo"
)

// Provider implements the evcc vehicle api
// Provider implements the vehicle api
type Provider struct {
chargerG func() (ChargerResponse, error)
statusG func() (StatusResponse, error)
Expand Down

0 comments on commit cf38959

Please sign in to comment.