Skip to content

Commit bdabcb5

Browse files
committed
Update docstring
1 parent 3bfed75 commit bdabcb5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

plugwise_usb/messages/requests.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -391,15 +391,15 @@ async def send(self) -> CirclePlusConnectResponse | None:
391391
# This message has an exceptional format and therefore
392392
# need to override the serialize method
393393
def serialize(self) -> bytes:
394-
"""Convert message to serialized list of bytes."""
395-
# This command has
396-
# args: byte
397-
# key, byte
398-
# network info.index, ulong
399-
# network key = 0
400-
special_id = (
401-
b"0001" # observed sequence with retries: b"0000", b"0001", B"0101"
402-
)
394+
"""Convert message to serialized list of bytes.
395+
396+
Parameters
397+
----------
398+
- special_id: byte - observed sequence with retry: b"0001", B"0101",
399+
- and args: byte.
400+
401+
"""
402+
special_id = b"0001"
403403
args = b"0000000000000000"
404404
msg: bytes = self._identifier + special_id + args
405405
if self._mac is not None:

0 commit comments

Comments
 (0)