We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2368bef commit 4fed92bCopy full SHA for 4fed92b
roborock/devices/traits/v1/command.py
@@ -16,7 +16,13 @@ def __post_init__(self) -> None:
16
self._rpc_channel = None
17
18
async def send(self, command: RoborockCommand | str, params: ParamsType = None) -> Any:
19
- """Send a command to the device."""
+ """Send a command to the device.
20
+
21
+ Sending a raw command to the device using this method does not update
22
+ the internal state of any other traits. It is the responsibility of the
23
+ caller to ensure that any traits affected by the command are refreshed
24
+ as needed.
25
+ """
26
if not self._rpc_channel:
27
raise ValueError("Device trait in invalid state")
28
return await self._rpc_channel.send_command(command, params=params)
0 commit comments