diff --git a/packages/control/algorithm/surplus_controlled_test.py b/packages/control/algorithm/surplus_controlled_test.py index 608f02994..feea65251 100644 --- a/packages/control/algorithm/surplus_controlled_test.py +++ b/packages/control/algorithm/surplus_controlled_test.py @@ -63,7 +63,7 @@ def setup_cp(cp: Chargepoint, feed_in_limit: bool) -> Chargepoint: def test_limit_adjust_current(new_current: float, expected_current: float, monkeypatch): # setup cp = Chargepoint(0, None) - cp.data = ChargepointData(get=Get(currents=[15]*3)) + cp.data = ChargepointData(get=Get(charge_state=True, currents=[15]*3)) cp.template = CpTemplate() monkeypatch.setattr(Chargepoint, "set_state_and_log", Mock())