@@ -44,7 +44,7 @@ async def test_pv_power(self, mocker: MockerFixture) -> None:
4444 mockgrid .add_solar_inverters (2 )
4545
4646 async with mockgrid , AsyncExitStack () as stack :
47- pv_pool = microgrid .pv_pool (priority = 5 )
47+ pv_pool = microgrid .new_pv_pool (priority = 5 )
4848 stack .push_async_callback (pv_pool .stop )
4949 pv_power_receiver = pv_pool .power .new_receiver ()
5050
@@ -57,7 +57,7 @@ async def test_pv_power_no_meter(self, mocker: MockerFixture) -> None:
5757 mockgrid .add_solar_inverters (2 , no_meter = True )
5858
5959 async with mockgrid , AsyncExitStack () as stack :
60- pv_pool = microgrid .pv_pool (priority = 5 )
60+ pv_pool = microgrid .new_pv_pool (priority = 5 )
6161 stack .push_async_callback (pv_pool .stop )
6262 pv_power_receiver = pv_pool .power .new_receiver ()
6363
@@ -70,7 +70,7 @@ async def test_pv_power_no_pv_components(self, mocker: MockerFixture) -> None:
7070 MockMicrogrid (grid_meter = True , mocker = mocker ) as mockgrid ,
7171 AsyncExitStack () as stack ,
7272 ):
73- pv_pool = microgrid .pv_pool (priority = 5 )
73+ pv_pool = microgrid .new_pv_pool (priority = 5 )
7474 stack .push_async_callback (pv_pool .stop )
7575 pv_power_receiver = pv_pool .power .new_receiver ()
7676
0 commit comments