chore: cleanup circuits api
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Demo (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled

This commit is contained in:
andig 2024-07-27 19:25:11 +02:00
parent d91bac9a86
commit c2b29a86b3

View file

@ -73,8 +73,8 @@ func TestCircuitPower(t *testing.T) {
c1, cm1 := circ(t, ctrl, 1)
c2, cm2 := circ(t, ctrl, 1)
c1.SetParent(pc)
c2.SetParent(pc)
c1.setParent(pc)
c2.setParent(pc)
// update meters
pm.EXPECT().CurrentPower().Return(tc.p, nil)
@ -112,8 +112,8 @@ func TestCircuitCurrents(t *testing.T) {
c1, cm1 := circ(t, ctrl, 1)
c2, cm2 := circ(t, ctrl, 1)
c1.SetParent(pc)
c2.SetParent(pc)
c1.setParent(pc)
c2.setParent(pc)
// update meters
pm.MockMeter.EXPECT().CurrentPower().AnyTimes().Return(0.0, nil)