Skip to content

Commit ee8f6ff

Browse files
committed
chore: only log if remaining
1 parent 3cff6c4 commit ee8f6ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roborock/protocol.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,8 @@ def decode(bytes_data: bytes) -> list[RoborockMessage]:
537537
parsed_messages, remaining = MessageParser.parse(
538538
buffer, local_key=local_key, connect_nonce=connect_nonce, ack_nonce=ack_nonce
539539
)
540-
_LOGGER.debug("Found %d extra bytes: %s", len(remaining), remaining)
540+
if remaining:
541+
_LOGGER.debug("Found %d extra bytes: %s", len(remaining), remaining)
541542
buffer = remaining
542543
return parsed_messages
543544

0 commit comments

Comments
 (0)