Skip to content

Commit 194baf2

Browse files
shsmsllucax
andauthored
Initialize super-class as the first step
Co-authored-by: Leandro Lucarella <[email protected]> Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 19e3c40 commit 194baf2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/frequenz/sdk/actor/power_distributing/_component_status/_pv_inverter_status_tracker.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ def __init__( # pylint: disable=too-many-arguments
6868
status_sender: Sender to send the status of the PV inverter.
6969
set_power_result_receiver: Receiver for the power assignment result.
7070
"""
71+
BackgroundService.__init__(
72+
self, name=f"PVInverterStatusTracker({component_id})"
73+
)
7174
self._component_id = component_id
7275
self._max_data_age = max_data_age
7376
self._status_sender = status_sender
@@ -79,10 +82,6 @@ def __init__( # pylint: disable=too-many-arguments
7982
max_duration=max_blocking_duration,
8083
)
8184

82-
BackgroundService.__init__(
83-
self, name=f"PVInverterStatusTracker({component_id})"
84-
)
85-
8685
@override
8786
def start(self) -> None:
8887
"""Start the status tracker."""

0 commit comments

Comments
 (0)