Skip to content

Commit 2bb3f29

Browse files
committed
Add pylint exemptions
1 parent ab7efea commit 2bb3f29

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

plugwise_usb/messages/requests.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ class CircleClockSetRequest(PlugwiseRequest):
750750
_identifier = b"0016"
751751
_reply_identifier = b"0000"
752752

753-
def __init__(
753+
def __init__( #pylint: disable=too-many-arguments
754754
self,
755755
send_fn: Callable[[PlugwiseRequest, bool], Awaitable[PlugwiseResponse | None]],
756756
mac: bytes,
@@ -1083,7 +1083,7 @@ class NodeAddToGroupRequest(PlugwiseRequest):
10831083
_identifier = b"0045"
10841084
_reply_identifier = b"0000"
10851085

1086-
def __init__(
1086+
def __init__( #pylint: disable=too-many-arguments
10871087
self,
10881088
send_fn: Callable[[PlugwiseRequest, bool], Awaitable[PlugwiseResponse | None]],
10891089
mac: bytes,
@@ -1231,7 +1231,7 @@ class NodeSleepConfigRequest(PlugwiseRequest):
12311231
_identifier = b"0050"
12321232
_reply_identifier = b"0000"
12331233

1234-
def __init__(
1234+
def __init__( #pylint: disable=too-many-arguments
12351235
self,
12361236
send_fn: Callable[[PlugwiseRequest, bool], Awaitable[PlugwiseResponse | None]],
12371237
mac: bytes,
@@ -1283,7 +1283,6 @@ class NodeSelfRemoveRequest(PlugwiseRequest):
12831283
<argument name="macId" length="16"/>
12841284
</arguments>
12851285
</command>
1286-
12871286
"""
12881287

12891288
_identifier = b"0051"
@@ -1403,7 +1402,7 @@ class ScanConfigureRequest(PlugwiseRequest):
14031402
_identifier = b"0101"
14041403
_reply_identifier = b"0100"
14051404

1406-
def __init__(
1405+
def __init__( #pylint: disable=too-many-arguments
14071406
self,
14081407
send_fn: Callable[[PlugwiseRequest, bool], Awaitable[PlugwiseResponse | None]],
14091408
mac: bytes,

plugwise_usb/nodes/circle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ async def _node_info_load_from_cache(self) -> bool:
912912
return result
913913
return False
914914

915-
async def update_node_details(
915+
async def update_node_details( #pylint: disable=too-many-arguments
916916
self,
917917
firmware: datetime | None,
918918
hardware: str | None,

plugwise_usb/nodes/helpers/counter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def add_pulse_log(
8888
timestamp: datetime,
8989
pulses: int,
9090
import_only: bool = False
91-
) -> None:
91+
) -> None: #pylint: disable=too-many-arguments
9292
"""Add pulse log."""
9393
if self._pulse_collection.add_log(
9494
address,

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def add_log(
370370
timestamp: datetime,
371371
pulses: int,
372372
import_only: bool = False,
373-
) -> bool:
373+
) -> bool: #pylint: disable=too-many-arguments
374374
"""Store pulse log."""
375375
log_record = PulseLogRecord(timestamp, pulses, CONSUMED)
376376
if not self._add_log_record(address, slot, log_record):

plugwise_usb/nodes/sed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ async def schedule_task_when_awake(
657657
self._send_task_queue.append(task_fn)
658658
self._send_task_lock.release()
659659

660-
async def sed_configure(
660+
async def sed_configure( #pylint: disable=too-many-arguments
661661
self,
662662
awake_duration: int,
663663
sleep_duration: int,
@@ -712,7 +712,7 @@ async def sed_configure(
712712
)
713713
return False
714714

715-
async def _sed_configure_update(
715+
async def _sed_configure_update( #pylint: disable=too-many-arguments
716716
self,
717717
awake_duration: int = SED_DEFAULT_AWAKE_DURATION,
718718
clock_interval: int = SED_DEFAULT_CLOCK_INTERVAL,

0 commit comments

Comments
 (0)