Skip to content

Commit 909d14f

Browse files
committed
Correct crc and message_footer mixup
1 parent 3e636b9 commit 909d14f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/messages/responses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def deserialize(self, response):
6464
response = self._parse_params(response)
6565
crc = response[:4]
6666

67-
if crc != MESSAGE_FOOTER:
67+
if response[4:] != MESSAGE_FOOTER:
6868
raise ProtocolError("Invalid message footer")
6969

7070
def _parse_params(self, response):

0 commit comments

Comments
 (0)