File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/frequenz/sdk/actor/power_distributing Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1818from frequenz .client .microgrid import ComponentCategory
1919
2020from ...actor ._actor import Actor
21- from ._component_managers import BatteryManager , ComponentManager
21+ from ._component_managers import BatteryManager , ComponentManager , EVChargerManager
2222from ._component_status import ComponentPoolStatus
2323from .request import Request
2424from .result import Result
@@ -89,6 +89,10 @@ def __init__( # pylint: disable=too-many-arguments
8989 self ._component_manager = BatteryManager (
9090 component_pool_status_sender , results_sender
9191 )
92+ elif component_category == ComponentCategory .EV_CHARGER :
93+ self ._component_manager = EVChargerManager (
94+ component_pool_status_sender , results_sender
95+ )
9296 else :
9397 raise ValueError (
9498 f"PowerDistributor doesn't support controlling: { component_category } "
You can’t perform that action at this time.
0 commit comments