Skip to content

Commit 1d32f2e

Browse files
authored
fix: fix typing for send() for q7 (#706)
1 parent cc4cae5 commit 1d32f2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
SCWindMapping,
1111
WaterLevelMapping,
1212
)
13-
from roborock.devices.b01_channel import send_decoded_command
13+
from roborock.devices.b01_channel import CommandType, ParamsType, send_decoded_command
1414
from roborock.devices.mqtt_channel import MqttChannel
1515
from roborock.devices.traits import Trait
1616
from roborock.roborock_message import RoborockB01Props
@@ -100,7 +100,7 @@ async def find_me(self) -> None:
100100
params={},
101101
)
102102

103-
async def send(self, command: RoborockB01Q7Methods, params: dict) -> Any:
103+
async def send(self, command: CommandType, params: ParamsType) -> Any:
104104
"""Send a command to the device."""
105105
return await send_decoded_command(
106106
self._channel,

0 commit comments

Comments
 (0)