EEBus: accept an inactive §14a limit without a value (#32155)
This commit is contained in:
parent
347c3f7b52
commit
408f9a056b
3 changed files with 7 additions and 2 deletions
|
|
@ -105,6 +105,9 @@ func TestOHPCF_LPC_Dimmed(t *testing.T) {
|
|||
{"active_positive", ucapi.LoadLimit{IsActive: true, Value: 4000}, true},
|
||||
{"active_zero", ucapi.LoadLimit{IsActive: true, Value: 0}, true},
|
||||
{"inactive", ucapi.LoadLimit{IsActive: false, Value: 4000}, false},
|
||||
// a heat pump that is not being limited reports the limit as inactive without
|
||||
// stating a value (#32125); that is a valid answer, not missing data
|
||||
{"inactive_without_value", ucapi.LoadLimit{IsActive: false, IsChangeable: true}, false},
|
||||
} {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
c, lpc, entity := newOHPCFEGCharger(t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue