chore: update comments

This commit is contained in:
andig 2023-01-04 19:32:03 +01:00
parent efa7e1b1fb
commit cf38959302
6 changed files with 8 additions and 6 deletions

View file

@ -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)

View file

@ -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)
}

View file

@ -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)

View file

@ -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)

View file

@ -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)
}
@ -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()

View file

@ -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)