Skip to content

Commit da6d244

Browse files
committed
fix ruff D202 [*] No blank lines allowed after function docstring
1 parent 0d55d91 commit da6d244

File tree

5 files changed

+0
-7
lines changed

5 files changed

+0
-7
lines changed

plugwise_usb/messages/responses.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,6 @@ def get_message_object( # noqa: C901
954954
identifier: bytes, length: int, seq_id: bytes
955955
) -> PlugwiseResponse | None:
956956
"""Return message class based on sequence ID, Length of message or message ID."""
957-
958957
# First check for known sequence ID's
959958
if seq_id == REJOIN_RESPONSE_SEQ_ID:
960959
return NodeRejoinResponse()

plugwise_usb/nodes/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def get_plugwise_node(
2222
node_type: NodeType,
2323
) -> PlugwiseNode | None:
2424
"""Return an initialized plugwise node class based on given the node type."""
25-
2625
if node_type == NodeType.CIRCLE_PLUS:
2726
return PlugwiseCirclePlus(
2827
mac,

plugwise_usb/nodes/circle.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ async def energy_update(self) -> EnergyStatistics | None:
433433

434434
async def get_missing_energy_logs(self) -> None:
435435
"""Task to retrieve missing energy logs."""
436-
437436
self._energy_counters.update()
438437
if self._current_log_address is None:
439438
return None
@@ -1147,7 +1146,6 @@ def _calc_watts(self, pulses: int, seconds: int, nano_offset: int) -> float | No
11471146

11481147
def _correct_power_pulses(self, pulses: int, offset: int) -> float:
11491148
"""Correct pulses based on given measurement time offset (ns)."""
1150-
11511149
# Sometimes the circle returns -1 for some of the pulse counters
11521150
# likely this means the circle measures very little power and is
11531151
# suffering from rounding errors. Zero these out. However, negative

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
def calc_log_address(address: int, slot: int, offset: int) -> tuple[int, int]:
2121
"""Calculate address and slot for log based for specified offset."""
22-
2322
if offset < 0:
2423
while offset + slot < 1:
2524
address -= 1
@@ -344,7 +343,6 @@ def _detect_rollover(
344343
is_consumption=True,
345344
) -> bool:
346345
"""Detect rollover based on timestamp comparisons."""
347-
348346
if (
349347
self._pulses_timestamp is not None
350348
and last_log_timestamp is not None

plugwise_usb/nodes/sed.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,6 @@ async def node_info_update(
488488
self, node_info: NodeInfoResponse | None = None
489489
) -> NodeInfo | None:
490490
"""Update Node (hardware) information."""
491-
492491
if node_info is None and self.skip_update(self._node_info, 86400):
493492
return self._node_info
494493
return await super().node_info_update(node_info)

0 commit comments

Comments
 (0)