HEMS: refactor handling of production/feedin limits (BC) (#27567)
This commit is contained in:
parent
86e2014532
commit
69db34e768
24 changed files with 440 additions and 336 deletions
|
|
@ -16,7 +16,6 @@ import (
|
|||
"github.com/evcc-io/evcc/charger/ocpp"
|
||||
"github.com/evcc-io/evcc/core"
|
||||
"github.com/evcc-io/evcc/core/keys"
|
||||
hemsapi "github.com/evcc-io/evcc/hems/hems"
|
||||
"github.com/evcc-io/evcc/messenger"
|
||||
"github.com/evcc-io/evcc/server"
|
||||
"github.com/evcc-io/evcc/server/db"
|
||||
|
|
@ -334,9 +333,8 @@ func runRoot(cmd *cobra.Command, args []string) {
|
|||
}
|
||||
|
||||
// start HEMS server
|
||||
var hems hemsapi.API
|
||||
if err == nil {
|
||||
hems, err = configureHEMS(&conf.HEMS, site)
|
||||
_, err = configureHEMS(&conf.HEMS, site)
|
||||
if err != nil {
|
||||
err = wrapErrorWithClass(ClassHEMS, err)
|
||||
}
|
||||
|
|
@ -386,7 +384,6 @@ func runRoot(cmd *cobra.Command, args []string) {
|
|||
|
||||
valueChan <- util.Param{Key: keys.Hems, Val: globalconfig.ConfigStatus{
|
||||
Config: conf.HEMS.Redacted(),
|
||||
Status: hemsapi.GetStatus(hems),
|
||||
YamlSource: yamlSource.hems,
|
||||
}}
|
||||
valueChan <- util.Param{Key: keys.Tariffs, Val: globalconfig.ConfigStatus{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue