@@ -2522,9 +2522,8 @@ async def test_set_raw_config_parameter_value(
25222522 {},
25232523 )
25242524
2525- assert await node .async_set_raw_config_parameter_value (
2526- 1 , 101 , 1
2527- ) == SetConfigParameterResult (CommandStatus .QUEUED )
2525+ _ , result = await node .async_set_raw_config_parameter_value (1 , 101 , 1 )
2526+ assert result == SetConfigParameterResult (CommandStatus .QUEUED )
25282527
25292528 assert len (ack_commands ) == 1
25302529
@@ -2540,9 +2539,10 @@ async def test_set_raw_config_parameter_value(
25402539 "messageId" : uuid4 ,
25412540 }
25422541
2543- assert await node .async_set_raw_config_parameter_value (
2542+ _ , result = await node .async_set_raw_config_parameter_value (
25442543 "Disable" , "Stay Awake in Battery Mode"
2545- ) == SetConfigParameterResult (CommandStatus .QUEUED )
2544+ )
2545+ assert result == SetConfigParameterResult (CommandStatus .QUEUED )
25462546
25472547 assert len (ack_commands ) == 2
25482548
@@ -2563,9 +2563,10 @@ async def test_set_raw_config_parameter_value(
25632563 )
25642564 node .receive_event (event )
25652565
2566- assert await node .async_set_raw_config_parameter_value (
2566+ _ , result = await node .async_set_raw_config_parameter_value (
25672567 1 , 2 , value_size = 1 , value_format = ConfigurationValueFormat .SIGNED_INTEGER
2568- ) == SetConfigParameterResult (CommandStatus .ACCEPTED )
2568+ )
2569+ assert result == SetConfigParameterResult (CommandStatus .ACCEPTED )
25692570
25702571 assert len (ack_commands ) == 3
25712572
@@ -2614,7 +2615,7 @@ async def test_supervision_result(inovelli_switch: node_pkg.Node, uuid4, mock_co
26142615 {"result" : {"status" : 1 , "remainingDuration" : "default" }},
26152616 )
26162617
2617- result = await node .async_set_raw_config_parameter_value (1 , 1 )
2618+ _ , result = await node .async_set_raw_config_parameter_value (1 , 1 )
26182619 assert result .result .status is SupervisionStatus .WORKING
26192620 duration = result .result .remaining_duration
26202621 assert duration .unit == "default"
0 commit comments