chore: fix missing requirement
This commit is contained in:
parent
ead776949d
commit
04b7e076a7
2 changed files with 6 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ import (
|
|||
"github.com/evcc-io/evcc/core/loadpoint"
|
||||
"github.com/evcc-io/evcc/util"
|
||||
"github.com/evcc-io/evcc/util/modbus"
|
||||
"github.com/evcc-io/evcc/util/sponsor"
|
||||
)
|
||||
|
||||
// GoodWe AC EV Charger Gen2 (e.g. GW11K-HCA) — Modbus TCP.
|
||||
|
|
@ -92,6 +93,10 @@ func NewGoodWe(ctx context.Context, uri string, slaveID uint8) (api.Charger, err
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if !sponsor.IsAuthorized() {
|
||||
return nil, api.ErrSponsorRequired
|
||||
}
|
||||
|
||||
log := util.NewLogger("goodwe")
|
||||
conn.Logger(log.TRACE)
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ products:
|
|||
generic: HCA Wallbox (Gen2)
|
||||
capabilities: ["mA", "rfid", "1p3p", "meter"]
|
||||
requirements:
|
||||
evcc: ["sponsorship"]
|
||||
description:
|
||||
de: |
|
||||
Modbus TCP muss in der SolarGo App im Menü „Kommunikation → Wallbox" aktiviert werden.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue