Skip to content

Commit df33794

Browse files
committed
fix: remove unneeded params setting
1 parent b711436 commit df33794

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

roborock/devices/local_channel.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ def __init__(self, host: str, local_key: str):
5858
self._subscribers: CallbackList[RoborockMessage] = CallbackList(_LOGGER)
5959
self._is_connected = False
6060
self._local_protocol_version: LocalProtocolVersion | None = None
61-
self._params = LocalChannelParams(local_key=local_key, connect_nonce=get_next_int(10000, 32767), ack_nonce=None)
62-
self._update_encoder_decoder(self._params)
61+
self._update_encoder_decoder(
62+
LocalChannelParams(local_key=local_key, connect_nonce=get_next_int(10000, 32767), ack_nonce=None)
63+
)
6364

6465
def _update_encoder_decoder(self, params: LocalChannelParams):
6566
self._params = params

0 commit comments

Comments
 (0)