Skip to content

Commit eda0a93

Browse files
committed
chore: change typing
1 parent 8680692 commit eda0a93

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

roborock/devices/b01_channel.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,8 @@ async def send_decoded_command(
2828
dps: int,
2929
command: CommandType,
3030
params: ParamsType,
31-
) -> Any:
32-
"""Send a command on the MQTT channel and get a decoded response.
33-
34-
Note: B01 "set" commands may return a scalar (e.g. 0/"ok") rather than a dict.
35-
"""
31+
) -> dict | None:
32+
"""Send a command on the MQTT channel and get a decoded response."""
3633
msg_id = str(get_next_int(100000000000, 999999999999))
3734
_LOGGER.debug(
3835
"Sending B01 MQTT command: dps=%s method=%s msg_id=%s params=%s",

0 commit comments

Comments
 (0)