EEBus: update eebus-go/ship-go, drop ship-go fork (#31550)
This commit is contained in:
parent
7dc1aa34c1
commit
feff7d8ae6
8 changed files with 21 additions and 23 deletions
|
|
@ -257,7 +257,7 @@ func (c *EEBus) Dim(dim bool) error {
|
|||
return api.ErrNotAvailable
|
||||
}
|
||||
|
||||
return eebus.Await(func(cb func(model.ResultDataType)) (*model.MsgCounterType, error) {
|
||||
return eebus.Await(func(cb func(model.ResultDataType, model.MsgCounterType)) (*model.MsgCounterType, error) {
|
||||
return c.eg.EgLPCInterface.WriteConsumptionLimit(entity, ucapi.LoadLimit{Value: value, IsActive: dim}, cb)
|
||||
})
|
||||
}
|
||||
|
|
@ -299,7 +299,7 @@ func (c *EEBus) SetCurtailPercent(percent int) error {
|
|||
}
|
||||
}
|
||||
|
||||
return eebus.Await(func(cb func(model.ResultDataType)) (*model.MsgCounterType, error) {
|
||||
return eebus.Await(func(cb func(model.ResultDataType, model.MsgCounterType)) (*model.MsgCounterType, error) {
|
||||
return c.eg.EgLPPInterface.WriteProductionLimit(entity, ucapi.LoadLimit{Value: value, IsActive: curtail}, cb)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue