Add battery grid charging (#14855)
This commit is contained in:
parent
bbf989c3c0
commit
b0ea0582e2
37 changed files with 797 additions and 489 deletions
|
|
@ -110,9 +110,9 @@ type API interface {
|
|||
//
|
||||
|
||||
// GetSmartChargingActive determines if smart charging is active
|
||||
GetSmartCostLimit() float64
|
||||
GetSmartCostLimit() *float64
|
||||
// SetSmartCostLimit sets the smart cost limit
|
||||
SetSmartCostLimit(limit float64)
|
||||
SetSmartCostLimit(limit *float64)
|
||||
|
||||
//
|
||||
// power and energy
|
||||
|
|
|
|||
|
|
@ -380,10 +380,10 @@ func (mr *MockAPIMockRecorder) GetRemainingEnergy() *gomock.Call {
|
|||
}
|
||||
|
||||
// GetSmartCostLimit mocks base method.
|
||||
func (m *MockAPI) GetSmartCostLimit() float64 {
|
||||
func (m *MockAPI) GetSmartCostLimit() *float64 {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetSmartCostLimit")
|
||||
ret0, _ := ret[0].(float64)
|
||||
ret0, _ := ret[0].(*float64)
|
||||
return ret0
|
||||
}
|
||||
|
||||
|
|
@ -602,7 +602,7 @@ func (mr *MockAPIMockRecorder) SetPriority(arg0 any) *gomock.Call {
|
|||
}
|
||||
|
||||
// SetSmartCostLimit mocks base method.
|
||||
func (m *MockAPI) SetSmartCostLimit(arg0 float64) {
|
||||
func (m *MockAPI) SetSmartCostLimit(arg0 *float64) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "SetSmartCostLimit", arg0)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue