Skip to content

Commit b7b47cb

Browse files
Lash-LCopilotallenporter
authored
chore: apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Allen Porter <allen.porter@gmail.com>
1 parent ab61a1a commit b7b47cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

roborock/devices/b01_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def find_response(response_message: RoborockMessage) -> None:
4444
_LOGGER.info("Failed to decode b01 message: %s: %s", response_message, ex)
4545
return
4646

47-
for _, dps_value in decoded_dps.items():
47+
for dps_value in decoded_dps.values():
4848
# valid responses are JSON strings wrapped in the dps value
4949
if not isinstance(dps_value, str):
5050
_LOGGER.debug("Received unexpected response: %s", dps_value)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, channel: MqttChannel) -> None:
2121
self._channel = channel
2222

2323
async def query_values(self, props: list[RoborockB01Props]) -> B01Props | None:
24-
"""Query the device for the values of the given Q7 protocols."""
24+
"""Query the device for the values of the given Q7 properties."""
2525
result = await send_decoded_command(
2626
self._channel, dps=10000, command=RoborockB01Q7Methods.GET_PROP, params={"property": props}
2727
)

0 commit comments

Comments
 (0)