@@ -108,6 +108,7 @@ async def test_constructor_with_grid_meter(self, mocker: MockerFixture) -> None:
108108 )
109109 async with PowerDistributingActor (
110110 component_category = ComponentCategory .BATTERY ,
111+ component_type = None ,
111112 requests_receiver = requests_channel .new_receiver (),
112113 results_sender = results_channel .new_sender (),
113114 component_pool_status_sender = battery_status_channel .new_sender (),
@@ -139,6 +140,7 @@ async def test_constructor_without_grid_meter(self, mocker: MockerFixture) -> No
139140 )
140141 async with PowerDistributingActor (
141142 component_category = ComponentCategory .BATTERY ,
143+ component_type = None ,
142144 requests_receiver = requests_channel .new_receiver (),
143145 results_sender = results_channel .new_sender (),
144146 component_pool_status_sender = battery_status_channel .new_sender (),
@@ -204,6 +206,7 @@ async def test_power_distributor_one_user(self, mocker: MockerFixture) -> None:
204206 battery_status_channel = Broadcast [ComponentPoolStatus ](name = "battery_status" )
205207 async with PowerDistributingActor (
206208 component_category = ComponentCategory .BATTERY ,
209+ component_type = None ,
207210 requests_receiver = requests_channel .new_receiver (),
208211 results_sender = results_channel .new_sender (),
209212 component_pool_status_sender = battery_status_channel .new_sender (),
@@ -264,6 +267,7 @@ async def test_power_distributor_exclusion_bounds(
264267 )
265268 async with PowerDistributingActor (
266269 component_category = ComponentCategory .BATTERY ,
270+ component_type = None ,
267271 requests_receiver = requests_channel .new_receiver (),
268272 results_sender = results_channel .new_sender (),
269273 component_pool_status_sender = battery_status_channel .new_sender (),
@@ -366,6 +370,7 @@ async def test_two_batteries_one_inverters(self, mocker: MockerFixture) -> None:
366370
367371 async with PowerDistributingActor (
368372 component_category = ComponentCategory .BATTERY ,
373+ component_type = None ,
369374 requests_receiver = requests_channel .new_receiver (),
370375 component_pool_status_sender = battery_status_channel .new_sender (),
371376 results_sender = results_channel .new_sender (),
@@ -445,6 +450,7 @@ async def test_two_batteries_one_broken_one_inverters(
445450
446451 async with PowerDistributingActor (
447452 component_category = ComponentCategory .BATTERY ,
453+ component_type = None ,
448454 requests_receiver = requests_channel .new_receiver (),
449455 component_pool_status_sender = battery_status_channel .new_sender (),
450456 results_sender = results_channel .new_sender (),
@@ -500,6 +506,7 @@ async def test_battery_two_inverters(self, mocker: MockerFixture) -> None:
500506
501507 async with PowerDistributingActor (
502508 component_category = ComponentCategory .BATTERY ,
509+ component_type = None ,
503510 requests_receiver = requests_channel .new_receiver (),
504511 component_pool_status_sender = battery_status_channel .new_sender (),
505512 results_sender = results_channel .new_sender (),
@@ -551,6 +558,7 @@ async def test_two_batteries_three_inverters(self, mocker: MockerFixture) -> Non
551558
552559 async with PowerDistributingActor (
553560 component_category = ComponentCategory .BATTERY ,
561+ component_type = None ,
554562 requests_receiver = requests_channel .new_receiver (),
555563 component_pool_status_sender = battery_status_channel .new_sender (),
556564 results_sender = results_channel .new_sender (),
@@ -636,6 +644,7 @@ async def test_two_batteries_one_inverter_different_exclusion_bounds_2(
636644
637645 async with PowerDistributingActor (
638646 component_category = ComponentCategory .BATTERY ,
647+ component_type = None ,
639648 requests_receiver = requests_channel .new_receiver (),
640649 component_pool_status_sender = battery_status_channel .new_sender (),
641650 results_sender = results_channel .new_sender (),
@@ -722,6 +731,7 @@ async def test_two_batteries_one_inverter_different_exclusion_bounds(
722731
723732 async with PowerDistributingActor (
724733 component_category = ComponentCategory .BATTERY ,
734+ component_type = None ,
725735 requests_receiver = requests_channel .new_receiver (),
726736 component_pool_status_sender = battery_status_channel .new_sender (),
727737 results_sender = results_channel .new_sender (),
@@ -787,6 +797,7 @@ async def test_connected_but_not_requested_batteries(
787797
788798 async with PowerDistributingActor (
789799 component_category = ComponentCategory .BATTERY ,
800+ component_type = None ,
790801 requests_receiver = requests_channel .new_receiver (),
791802 component_pool_status_sender = battery_status_channel .new_sender (),
792803 results_sender = results_channel .new_sender (),
@@ -844,6 +855,7 @@ async def test_battery_soc_nan(self, mocker: MockerFixture) -> None:
844855 )
845856 async with PowerDistributingActor (
846857 component_category = ComponentCategory .BATTERY ,
858+ component_type = None ,
847859 requests_receiver = requests_channel .new_receiver (),
848860 results_sender = results_channel .new_sender (),
849861 component_pool_status_sender = battery_status_channel .new_sender (),
@@ -898,6 +910,7 @@ async def test_battery_capacity_nan(self, mocker: MockerFixture) -> None:
898910 )
899911 async with PowerDistributingActor (
900912 component_category = ComponentCategory .BATTERY ,
913+ component_type = None ,
901914 requests_receiver = requests_channel .new_receiver (),
902915 results_sender = results_channel .new_sender (),
903916 component_pool_status_sender = battery_status_channel .new_sender (),
@@ -971,6 +984,7 @@ async def test_battery_power_bounds_nan(self, mocker: MockerFixture) -> None:
971984 )
972985 async with PowerDistributingActor (
973986 component_category = ComponentCategory .BATTERY ,
987+ component_type = None ,
974988 requests_receiver = requests_channel .new_receiver (),
975989 results_sender = results_channel .new_sender (),
976990 component_pool_status_sender = battery_status_channel .new_sender (),
@@ -1016,6 +1030,7 @@ async def test_power_distributor_invalid_battery_id(
10161030 )
10171031 async with PowerDistributingActor (
10181032 component_category = ComponentCategory .BATTERY ,
1033+ component_type = None ,
10191034 requests_receiver = requests_channel .new_receiver (),
10201035 results_sender = results_channel .new_sender (),
10211036 component_pool_status_sender = battery_status_channel .new_sender (),
@@ -1060,6 +1075,7 @@ async def test_power_distributor_one_user_adjust_power_consume(
10601075 )
10611076 async with PowerDistributingActor (
10621077 component_category = ComponentCategory .BATTERY ,
1078+ component_type = None ,
10631079 requests_receiver = requests_channel .new_receiver (),
10641080 results_sender = results_channel .new_sender (),
10651081 component_pool_status_sender = battery_status_channel .new_sender (),
@@ -1106,6 +1122,7 @@ async def test_power_distributor_one_user_adjust_power_supply(
11061122 )
11071123 async with PowerDistributingActor (
11081124 component_category = ComponentCategory .BATTERY ,
1125+ component_type = None ,
11091126 requests_receiver = requests_channel .new_receiver (),
11101127 results_sender = results_channel .new_sender (),
11111128 component_pool_status_sender = battery_status_channel .new_sender (),
@@ -1152,6 +1169,7 @@ async def test_power_distributor_one_user_adjust_power_success(
11521169 )
11531170 async with PowerDistributingActor (
11541171 component_category = ComponentCategory .BATTERY ,
1172+ component_type = None ,
11551173 requests_receiver = requests_channel .new_receiver (),
11561174 results_sender = results_channel .new_sender (),
11571175 component_pool_status_sender = battery_status_channel .new_sender (),
@@ -1191,6 +1209,7 @@ async def test_not_all_batteries_are_working(self, mocker: MockerFixture) -> Non
11911209 )
11921210 async with PowerDistributingActor (
11931211 component_category = ComponentCategory .BATTERY ,
1212+ component_type = None ,
11941213 requests_receiver = requests_channel .new_receiver (),
11951214 results_sender = results_channel .new_sender (),
11961215 component_pool_status_sender = battery_status_channel .new_sender (),
@@ -1244,6 +1263,7 @@ async def test_partial_failure_result(self, mocker: MockerFixture) -> None:
12441263 )
12451264 async with PowerDistributingActor (
12461265 component_category = ComponentCategory .BATTERY ,
1266+ component_type = None ,
12471267 requests_receiver = requests_channel .new_receiver (),
12481268 results_sender = results_channel .new_sender (),
12491269 component_pool_status_sender = battery_status_channel .new_sender (),
0 commit comments