Skip to content

Commit 6d1c04d

Browse files
committed
Add a required namespace field to PowerDistributingActor requests
This field be used to identify the channel for sending a response into, in the channel registry. Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 74d99d9 commit 6d1c04d

File tree

1 file changed

+7
-0
lines changed
  • src/frequenz/sdk/actor/power_distributing

1 file changed

+7
-0
lines changed

src/frequenz/sdk/actor/power_distributing/request.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
class Request:
1313
"""Request to set power to the `PowerDistributingActor`."""
1414

15+
namespace: str
16+
"""The namespace of the request.
17+
18+
This will be used to identify the channel for sending the response into, in the
19+
channel registry.
20+
"""
21+
1522
power: float
1623
"""The requested power in watts."""
1724

0 commit comments

Comments
 (0)