File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/frequenz/sdk/actor/power_distributing Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1414
1515from frequenz .channels import Receiver , Sender
1616from frequenz .client .microgrid import ComponentCategory , ComponentType , InverterType
17+ from typing_extensions import override
1718
1819from ...actor ._actor import Actor
1920from ._component_managers import (
@@ -113,6 +114,7 @@ def __init__( # pylint: disable=too-many-arguments
113114 f"PowerDistributor doesn't support controlling: { component_category } "
114115 )
115116
117+ @override
116118 async def _run (self ) -> None : # pylint: disable=too-many-locals
117119 """Run actor main function.
118120
@@ -127,6 +129,7 @@ async def _run(self) -> None: # pylint: disable=too-many-locals
127129 async for request in self ._requests_receiver :
128130 await self ._component_manager .distribute_power (request )
129131
132+ @override
130133 async def stop (self , msg : str | None = None ) -> None :
131134 """Stop this actor.
132135
You can’t perform that action at this time.
0 commit comments