Skip to content

Commit 634bc45

Browse files
committed
chore: refactor Skoda folder structure
1 parent 63d152c commit 634bc45

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

vehicle/skoda-enyaq.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ import (
66
"github.com/evcc-io/evcc/api"
77
"github.com/evcc-io/evcc/util"
88
"github.com/evcc-io/evcc/util/request"
9-
"github.com/evcc-io/evcc/vehicle/skoda/myskoda"
10-
"github.com/evcc-io/evcc/vehicle/skoda/myskoda/service"
9+
"github.com/evcc-io/evcc/vehicle/skoda"
10+
"github.com/evcc-io/evcc/vehicle/skoda/service"
1111
)
1212

1313
// https://gitlab.com/prior99/skoda
1414

1515
// Enyaq is an api.Vehicle implementation for Skoda Enyaq cars
1616
type Enyaq struct {
1717
*embed
18-
*myskoda.Provider // provides the api implementations
18+
*skoda.Provider // provides the api implementations
1919
}
2020

2121
func init() {
@@ -50,17 +50,17 @@ func NewEnyaqFromConfig(other map[string]interface{}) (api.Vehicle, error) {
5050
log := util.NewLogger("enyaq").Redact(cc.User, cc.Password, cc.VIN)
5151

5252
// use Skoda api to resolve list of vehicles
53-
ts, err := service.TokenRefreshServiceTokenSource(log, myskoda.TRSParams, myskoda.AuthParams, cc.User, cc.Password)
53+
ts, err := service.TokenRefreshServiceTokenSource(log, skoda.TRSParams, skoda.AuthParams, cc.User, cc.Password)
5454
if err != nil {
5555
return nil, err
5656
}
5757

58-
api := myskoda.NewAPI(log, ts)
58+
api := skoda.NewAPI(log, ts)
5959
api.Client.Timeout = cc.Timeout
6060

6161
vehicle, err := ensureVehicleEx(
6262
cc.VIN, api.Vehicles,
63-
func(v myskoda.Vehicle) (string, error) {
63+
func(v skoda.Vehicle) (string, error) {
6464
return v.VIN, nil
6565
},
6666
)
@@ -75,10 +75,10 @@ func NewEnyaqFromConfig(other map[string]interface{}) (api.Vehicle, error) {
7575

7676
// reuse tokenService to build provider
7777
if err == nil {
78-
api := myskoda.NewAPI(log, ts)
78+
api := skoda.NewAPI(log, ts)
7979
api.Client.Timeout = cc.Timeout
8080

81-
v.Provider = myskoda.NewProvider(api, vehicle.VIN, cc.Cache)
81+
v.Provider = skoda.NewProvider(api, vehicle.VIN, cc.Cache)
8282
}
8383

8484
return v, err
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package myskoda
1+
package skoda
22

33
import (
44
"fmt"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package myskoda
1+
package skoda
22

33
import "net/url"
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package myskoda
1+
package skoda
22

33
import (
44
"time"

vehicle/skoda/myskoda/service/tokenrefreshservice.go renamed to vehicle/skoda/service/tokenrefreshservice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"net/url"
55

66
"github.com/evcc-io/evcc/util"
7-
"github.com/evcc-io/evcc/vehicle/skoda/myskoda/tokenrefreshservice"
7+
"github.com/evcc-io/evcc/vehicle/skoda/tokenrefreshservice"
88
"github.com/evcc-io/evcc/vehicle/vag"
99
"github.com/evcc-io/evcc/vehicle/vag/vwidentity"
1010
)
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package myskoda
1+
package skoda
22

33
// VehiclesResponse is the /v3/garage api
44
type VehiclesResponse struct {

0 commit comments

Comments
 (0)