Skip to content

Commit 0b6126d

Browse files
committed
Shorten args, must be length=16
1 parent 168f806 commit 0b6126d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugwise_usb/messages/requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def serialize(self) -> bytes:
397397
# key, byte
398398
# network info.index, ulong
399399
# network key = 0
400-
args = b"000000000000000000"
400+
args = b"0000000000000000"
401401
msg: bytes = self._identifier + args
402402
if self._mac is not None:
403403
msg += self._mac

tests/test_pairing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
+ b"04FF"
7070
+ b"FF",
7171
),
72-
b"\x05\x05\x03\x0300040000000000000000000098765432101234\r\n": (
72+
b"\x05\x05\x03\x03000400000000000000000098765432101234\r\n": (
7373
"Pair request of plus-device 0098765432101234",
7474
b"000000C1", # Success ack
7575
b"0005" # response msg_id

0 commit comments

Comments
 (0)