Skip to content

Commit 2d1683f

Browse files
committed
chore: small tweaks
1 parent d96c4e4 commit 2d1683f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

roborock/devices/b01_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async def send_decoded_command(
3131
) -> dict[str, Any]:
3232
"""Send a command on the MQTT channel and get a decoded response."""
3333
_LOGGER.debug("Sending MQTT command: %s", params)
34-
msg_id = get_next_int(100000000000, 999999999999)
34+
msg_id = str(get_next_int(100000000000, 999999999999))
3535
roborock_message = encode_mqtt_payload(dps, command, params, msg_id)
3636
finished = asyncio.Event()
3737
result: dict[str, Any] = {}

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 Dyad protocols."""
24+
"""Query the device for the values of the given Q7 protocols."""
2525
result = await send_decoded_command(
2626
self._channel, dps=10000, command=RoborockB01Q7Methods.GET_PROP, params={"property": props}
2727
)

roborock/protocols/b01_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
ParamsType = list | dict | int | None
2323

2424

25-
def encode_mqtt_payload(dps: int, command: CommandType, params: ParamsType, msg_id: int) -> RoborockMessage:
25+
def encode_mqtt_payload(dps: int, command: CommandType, params: ParamsType, msg_id: str) -> RoborockMessage:
2626
"""Encode payload for B01 commands over MQTT."""
2727
dps_data = {
2828
"dps": {

0 commit comments

Comments
 (0)