Skip to content

Commit 4fed92b

Browse files
committed
chore: Update working for the CommandTrait
1 parent 2368bef commit 4fed92b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

roborock/devices/traits/v1/command.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ def __post_init__(self) -> None:
1616
self._rpc_channel = None
1717

1818
async def send(self, command: RoborockCommand | str, params: ParamsType = None) -> Any:
19-
"""Send a command to the device."""
19+
"""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+
"""
2026
if not self._rpc_channel:
2127
raise ValueError("Device trait in invalid state")
2228
return await self._rpc_channel.send_command(command, params=params)

0 commit comments

Comments
 (0)