Smart Cost: treat smart cost charging as inflexible for prioritisation (#19381)
This commit is contained in:
parent
b638445745
commit
674591517f
6 changed files with 25 additions and 25 deletions
|
|
@ -171,7 +171,7 @@ type API interface {
|
|||
// GetChargePower returns the current charging power
|
||||
GetChargePower() float64
|
||||
// GetChargePowerFlexibility returns the flexible amount of current charging power
|
||||
GetChargePowerFlexibility() float64
|
||||
GetChargePowerFlexibility(rates api.Rates) float64
|
||||
// GetMaxPhaseCurrent returns max phase current
|
||||
GetMaxPhaseCurrent() float64
|
||||
|
||||
|
|
|
|||
|
|
@ -154,17 +154,17 @@ func (mr *MockAPIMockRecorder) GetChargePower() *gomock.Call {
|
|||
}
|
||||
|
||||
// GetChargePowerFlexibility mocks base method.
|
||||
func (m *MockAPI) GetChargePowerFlexibility() float64 {
|
||||
func (m *MockAPI) GetChargePowerFlexibility(rates api.Rates) float64 {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetChargePowerFlexibility")
|
||||
ret := m.ctrl.Call(m, "GetChargePowerFlexibility", rates)
|
||||
ret0, _ := ret[0].(float64)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// GetChargePowerFlexibility indicates an expected call of GetChargePowerFlexibility.
|
||||
func (mr *MockAPIMockRecorder) GetChargePowerFlexibility() *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) GetChargePowerFlexibility(rates any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChargePowerFlexibility", reflect.TypeOf((*MockAPI)(nil).GetChargePowerFlexibility))
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChargePowerFlexibility", reflect.TypeOf((*MockAPI)(nil).GetChargePowerFlexibility), rates)
|
||||
}
|
||||
|
||||
// GetChargerName mocks base method.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue