Skip to content

Commit d8c0f7f

Browse files
committed
chore: Address review feedback
1 parent 7601c6f commit d8c0f7f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

roborock/devices/rpc/b01_q10_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def stream_decoded_responses(
2828
decoded_dps = decode_rpc_response(response_message)
2929
except RoborockException as ex:
3030
_LOGGER.debug(
31-
"Failed to decode B01 RPC response: %s: %s",
31+
"Failed to decode B01 Q10 RPC response: %s: %s",
3232
response_message,
3333
ex,
3434
)

roborock/devices/traits/b01/q10/__init__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,8 @@ async def close(self) -> None:
5656

5757
async def refresh(self) -> None:
5858
"""Refresh all traits."""
59-
# Ask for updates to specific DPS values. Updates will be received
60-
# by the subscribe loop below.
61-
# For now we just ask for all DPS values that traits care about here
62-
# but this could be split out to give each trait its own refresh
63-
# method in the future if needed.
59+
# Sending the REQUEST_DPS will cause the device to send all DPS values
60+
# to the device. Updates will be received by the subscribe loop below.
6461
await self.command.send(B01_Q10_DP.REQUEST_DPS, params={})
6562

6663
async def _subscribe_loop(self) -> None:

0 commit comments

Comments
 (0)