chore: reenable decorator for Tesla Powerwall (#10853)
This commit is contained in:
parent
91f33f8569
commit
ae33590e6b
2 changed files with 3 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ func init() {
|
|||
registry.Add("powerwall", NewPowerWallFromConfig)
|
||||
}
|
||||
|
||||
// go:generate go run ../cmd/tools/decorate.go -f decoratePowerWall -b *PowerWall -r api.Meter -t "api.MeterEnergy,TotalEnergy,func() (float64, error)" -t "api.Battery,Soc,func() (float64, error)" -t "api.BatteryCapacity,Capacity,func() float64" -t "api.BatteryController,SetBatteryMode,func(api.BatteryMode) error"
|
||||
//go:generate go run ../cmd/tools/decorate.go -f decoratePowerWall -b *PowerWall -r api.Meter -t "api.MeterEnergy,TotalEnergy,func() (float64, error)" -t "api.Battery,Soc,func() (float64, error)" -t "api.BatteryCapacity,Capacity,func() float64" -t "api.BatteryController,SetBatteryMode,func(api.BatteryMode) error"
|
||||
|
||||
// NewPowerWallFromConfig creates a PowerWall Powerwall Meter from generic config
|
||||
func NewPowerWallFromConfig(other map[string]interface{}) (api.Meter, error) {
|
||||
|
|
|
|||
|
|
@ -268,8 +268,8 @@ type decoratePowerWallBatteryControllerImpl struct {
|
|||
batteryController func(api.BatteryMode) error
|
||||
}
|
||||
|
||||
func (impl *decoratePowerWallBatteryControllerImpl) SetBatteryMode(m api.BatteryMode) error {
|
||||
return impl.batteryController(m)
|
||||
func (impl *decoratePowerWallBatteryControllerImpl) SetBatteryMode(p0 api.BatteryMode) error {
|
||||
return impl.batteryController(p0)
|
||||
}
|
||||
|
||||
type decoratePowerWallMeterEnergyImpl struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue