Skip to content

Commit

Permalink
Initialize super-class as the first step
Browse files Browse the repository at this point in the history
Co-authored-by: Leandro Lucarella <[email protected]>
Signed-off-by: Sahas Subramanian <[email protected]>
  • Loading branch information
shsms and llucax authored Apr 10, 2024
1 parent 19e3c40 commit 194baf2
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ def __init__( # pylint: disable=too-many-arguments
status_sender: Sender to send the status of the PV inverter.
set_power_result_receiver: Receiver for the power assignment result.
"""
BackgroundService.__init__(
self, name=f"PVInverterStatusTracker({component_id})"
)
self._component_id = component_id
self._max_data_age = max_data_age
self._status_sender = status_sender
Expand All @@ -79,10 +82,6 @@ def __init__( # pylint: disable=too-many-arguments
max_duration=max_blocking_duration,
)

BackgroundService.__init__(
self, name=f"PVInverterStatusTracker({component_id})"
)

@override
def start(self) -> None:
"""Start the status tracker."""
Expand Down

0 comments on commit 194baf2

Please sign in to comment.