This commit is contained in:
andig 2020-11-22 22:02:33 +01:00
parent 26c592a3e2
commit e8bd532a3b

View file

@ -24,8 +24,6 @@ func init() {
registry.Add("phoenix-evcc", NewPhoenixEVCCFromConfig)
}
//go:generate go run ../cmd/tools/decorate.go -p charger -f decoratePhoenixEVCC -b api.Charger -o phoenix-evcc_decorators -t "api.Meter,CurrentPower,func() (float64, error)" -t "api.MeterEnergy,TotalEnergy,func() (float64, error)" -t "api.MeterCurrent,Currents,func() (float64, float64, float64, error)"
// NewPhoenixEVCCFromConfig creates a Phoenix charger from generic config
func NewPhoenixEVCCFromConfig(other map[string]interface{}) (api.Charger, error) {
cc := struct {