chore: fix comments

This commit is contained in:
andig 2023-01-04 19:27:36 +01:00
parent 542574b537
commit efa7e1b1fb
10 changed files with 10 additions and 10 deletions

View file

@ -14,7 +14,7 @@ type Provider struct {
statusG func() (VehicleStatus, error)
}
// NewProvider provides the evcc vehicle api provider
// NewProvider creates a vehicle api provider
func NewProvider(api *API, vin string, cache time.Duration) *Provider {
impl := &Provider{
statusG: provider.Cached(func() (VehicleStatus, error) {

View file

@ -12,7 +12,7 @@ type Provider struct {
rangeG func() (EVResponse, error)
}
// NewProvider provides the evcc vehicle api provider
// NewProvider creates a vehicle api provider
func NewProvider(api *API, vin string, cache time.Duration) *Provider {
impl := &Provider{
chargerG: provider.Cached(func() (EVResponse, error) {

View file

@ -16,7 +16,7 @@ type Provider struct {
mobileG func() (StatusResponseMobile, error)
}
// NewProvider creates a new vehicle
// NewProvider creates a vehicle api provider
func NewProvider(log *util.Logger, api *API, emobility *EmobilityAPI, mobile *MobileAPI, vin, carModel string, cache time.Duration) *Provider {
impl := &Provider{
statusG: provider.Cached(func() (StatusResponse, error) {

View file

@ -13,7 +13,7 @@ type Provider struct {
statusG func() (Status, error)
}
// NewProvider creates a new vehicle
// NewProvider creates a vehicle api provider
func NewProvider(api *API, vid string, cache time.Duration) *Provider {
impl := &Provider{
statusG: provider.Cached(func() (Status, error) {

View file

@ -20,7 +20,7 @@ type Provider struct {
wakeup func() (kamereon.Response, error)
}
// NewProvider creates a new vehicle
// NewProvider creates a vehicle api provider
func NewProvider(api *kamereon.API, accountID, vin string, cache time.Duration) *Provider {
impl := &Provider{
batteryG: provider.Cached(func() (kamereon.Response, error) {

View file

@ -14,7 +14,7 @@ type Provider struct {
action func(string, string) error
}
// NewProvider creates a new vehicle
// NewProvider creates a vehicle api provider
func NewProvider(api *API, userID, vin string, cache time.Duration) *Provider {
impl := &Provider{
statusG: provider.Cached(func() (Status, error) {

View file

@ -15,7 +15,7 @@ type Provider struct {
action func(action, value string) error
}
// NewProvider provides the evcc vehicle api provider
// NewProvider creates a vehicle api provider
func NewProvider(api *API, vin string, cache time.Duration) *Provider {
impl := &Provider{
statusG: provider.Cached(func() (StatusResponse, error) {

View file

@ -12,7 +12,7 @@ type Provider struct {
statusG func() (RechargeStatus, error)
}
// NewProvider provides the evcc vehicle api provider
// NewProvider creates a vehicle api provider
func NewProvider(api *API, vin string, cache time.Duration) *Provider {
impl := &Provider{
statusG: provider.Cached(func() (RechargeStatus, error) {

View file

@ -15,7 +15,7 @@ type Provider struct {
action func(action, value string) error
}
// NewProvider creates a new vehicle
// NewProvider creates a vehicle api provider
func NewProvider(api *API, vin string, cache time.Duration) *Provider {
impl := &Provider{
statusG: provider.Cached(func() (Status, error) {

View file

@ -25,7 +25,7 @@ type Provider struct {
rr func() (RolesRights, error)
}
// NewProvider provides the evcc vehicle api provider
// NewProvider creates a vehicle api provider
func NewProvider(api *API, vin string, cache time.Duration) *Provider {
impl := &Provider{
chargerG: provider.Cached(func() (ChargerResponse, error) {