@@ -254,7 +254,7 @@ async def test_v1_channel_send_command_local_preferred(
254254
255255 # Send command
256256 mock_local_channel .response_queue .append (TEST_RESPONSE )
257- result = await v1_channel .rpc_channel .send_command (
257+ result = await v1_channel .rpc_channel () .send_command (
258258 RoborockCommand .CHANGE_SOUND_VOLUME ,
259259 response_type = S5MaxStatus ,
260260 )
@@ -280,7 +280,7 @@ async def test_v1_channel_send_command_local_fails(
280280
281281 # Send command
282282 with pytest .raises (RoborockException , match = "Local failed" ):
283- await v1_channel .rpc_channel .send_command (
283+ await v1_channel .rpc_channel () .send_command (
284284 RoborockCommand .CHANGE_SOUND_VOLUME ,
285285 response_type = S5MaxStatus ,
286286 )
@@ -300,7 +300,7 @@ async def test_v1_channel_send_decoded_command_mqtt_only(
300300
301301 # Send command
302302 mock_mqtt_channel .response_queue .append (TEST_RESPONSE )
303- result = await v1_channel .rpc_channel .send_command (
303+ result = await v1_channel .rpc_channel () .send_command (
304304 RoborockCommand .CHANGE_SOUND_VOLUME ,
305305 response_type = S5MaxStatus ,
306306 )
@@ -322,7 +322,7 @@ async def test_v1_channel_send_decoded_command_with_params(
322322 # Send command with params
323323 mock_local_channel .response_queue .append (TEST_RESPONSE )
324324 test_params = {"volume" : 80 }
325- await v1_channel .rpc_channel .send_command (
325+ await v1_channel .rpc_channel () .send_command (
326326 RoborockCommand .CHANGE_SOUND_VOLUME ,
327327 response_type = S5MaxStatus ,
328328 params = test_params ,
@@ -444,7 +444,7 @@ async def test_v1_channel_command_encoding_validation(
444444
445445 # Send local command and capture the request
446446 mock_local_channel .response_queue .append (TEST_RESPONSE_2 )
447- await v1_channel .rpc_channel .send_command (RoborockCommand .CHANGE_SOUND_VOLUME , params = {"volume" : 50 })
447+ await v1_channel .rpc_channel () .send_command (RoborockCommand .CHANGE_SOUND_VOLUME , params = {"volume" : 50 })
448448 assert mock_local_channel .published_messages
449449 local_message = mock_local_channel .published_messages [0 ]
450450
@@ -512,7 +512,7 @@ async def test_v1_channel_full_subscribe_and_command_flow(
512512
513513 # Send a command (should use local)
514514 mock_local_channel .response_queue .append (TEST_RESPONSE )
515- result = await v1_channel .rpc_channel .send_command (
515+ result = await v1_channel .rpc_channel () .send_command (
516516 RoborockCommand .GET_STATUS ,
517517 response_type = S5MaxStatus ,
518518 )
0 commit comments