Skip to content

Commit 3966f7f

Browse files
author
Marco Aust
committed
remove cache
1 parent 6aa155a commit 3966f7f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

charger/cfos.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"github.com/evcc-io/evcc/api"
99
"github.com/evcc-io/evcc/util"
1010
"github.com/evcc-io/evcc/util/modbus"
11-
"github.com/evcc-io/evcc/util/sponsor"
1211
)
1312

1413
const (
@@ -32,8 +31,6 @@ const (
3231
// https://www.cfos-emobility.de/en-gb/cfos-power-brain/modbus-registers.htm
3332
type CfosPowerBrain struct {
3433
conn *modbus.Connection
35-
36-
cachedTotalEnergy float64
3734
}
3835

3936
func init() {
@@ -64,10 +61,6 @@ func NewCfosPowerBrain(ctx context.Context, uri string, id uint8) (api.Charger,
6461
return nil, err
6562
}
6663

67-
if !sponsor.IsAuthorized() {
68-
return nil, api.ErrSponsorRequired
69-
}
70-
7164
log := util.NewLogger("cfos")
7265
conn.Logger(log.TRACE)
7366

0 commit comments

Comments
 (0)