diff --git a/roborock/devices/traits/b01/q10/remote.py b/roborock/devices/traits/b01/q10/remote.py index 2d860faa..450d1901 100644 --- a/roborock/devices/traits/b01/q10/remote.py +++ b/roborock/devices/traits/b01/q10/remote.py @@ -20,7 +20,7 @@ def __init__(self, command: CommandTrait) -> None: self._command = command async def _send_remote(self, action: RemoteCommand) -> None: - await self._command.send(B01_Q10_DP.COMMON, params={B01_Q10_DP.REMOTE: action.value}) + await self._command.send(B01_Q10_DP.COMMON, params={str(B01_Q10_DP.REMOTE.code): action.value}) async def forward(self) -> None: """Move forward.""" diff --git a/tests/devices/traits/b01/q10/test_remote.py b/tests/devices/traits/b01/q10/test_remote.py index 1fdf1306..4de8c986 100644 --- a/tests/devices/traits/b01/q10/test_remote.py +++ b/tests/devices/traits/b01/q10/test_remote.py @@ -27,11 +27,11 @@ def remote_fixture(q10_api: Q10PropertiesApi) -> RemoteTrait: @pytest.mark.parametrize( ("command_fn", "expected_payload"), [ - (lambda x: x.forward(), {"101": {"dpRemote": 0}}), - (lambda x: x.left(), {"101": {"dpRemote": 2}}), - (lambda x: x.right(), {"101": {"dpRemote": 3}}), - (lambda x: x.stop(), {"101": {"dpRemote": 4}}), - (lambda x: x.exit_remote(), {"101": {"dpRemote": 5}}), + (lambda x: x.forward(), {"101": {"12": 0}}), + (lambda x: x.left(), {"101": {"12": 2}}), + (lambda x: x.right(), {"101": {"12": 3}}), + (lambda x: x.stop(), {"101": {"12": 4}}), + (lambda x: x.exit_remote(), {"101": {"12": 5}}), ], ) async def test_remote_commands(