chore: update comments
This commit is contained in:
parent
efa7e1b1fb
commit
cf38959302
6 changed files with 8 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue