EEBus: accept an inactive §14a limit without a value (#32155)

This commit is contained in:
andig 2026-07-25 18:46:33 +02:00 • committed by GitHub
parent 347c3f7b52
commit 408f9a056b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -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)