Skip to content

Commit 0fa3456

Browse files
committed
fix: decoding l01
1 parent ac21c9b commit 0fa3456

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

roborock/devices/local_channel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def _update_encoder_decoder(self, params: LocalChannelParams):
7272
)
7373
# Callback to decode messages and dispatch to subscribers
7474
self._data_received: Callable[[bytes], None] = decoder_callback(self._decoder, self._subscribers, _LOGGER)
75+
if self._protocol:
76+
self._protocol.messages_cb = self._data_received
7577

7678
async def _do_hello(self, local_protocol_version: LocalProtocolVersion) -> LocalChannelParams | None:
7779
"""Perform the initial handshaking and return encoder params if successful."""

0 commit comments

Comments
 (0)