Skip to content

Commit 8ee526e

Browse files
committed
Use a grid meter component for testing EVChargerPool.power
This is because in the current component graph, there are no meters, which is a problem because the mock resampler can't stream voltage data for EV chargers, and the upcoming EVChargerManager requires voltage info to determine the min and max power bounds for EV chargers based on their rated current limits. Signed-off-by: Sahas Subramanian <[email protected]>
1 parent bb8a89c commit 8ee526e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/timeseries/test_ev_charger_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async def test_ev_power( # pylint: disable=too-many-locals
1919
mocker: MockerFixture,
2020
) -> None:
2121
"""Test the ev power formula."""
22-
mockgrid = MockMicrogrid(grid_meter=False, mocker=mocker)
22+
mockgrid = MockMicrogrid(grid_meter=True, mocker=mocker)
2323
mockgrid.add_ev_chargers(3)
2424

2525
async with mockgrid:

0 commit comments

Comments
 (0)