From 3cba4519987329f3855c4299f9cfae77779253d3 Mon Sep 17 00:00:00 2001 From: Brayan Almonte Date: Tue, 3 Sep 2024 10:43:55 -0400 Subject: [PATCH] fix(hardware): Ignore the Hepa/UV when resolving for attached instruments. (#16175) --- .../opentrons_hardware/hardware_control/tools/detector.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hardware/opentrons_hardware/hardware_control/tools/detector.py b/hardware/opentrons_hardware/hardware_control/tools/detector.py index 7483886c52f..c5ff9d4c1a9 100644 --- a/hardware/opentrons_hardware/hardware_control/tools/detector.py +++ b/hardware/opentrons_hardware/hardware_control/tools/detector.py @@ -82,6 +82,8 @@ async def _await_responses( node = await _handle_hepa_uv_info( response_queue, response, arbitration_id ) + seen.add(node) + break elif isinstance(response, message_definitions.ErrorMessage): log.error(f"Received error message {str(response)}") @@ -215,7 +217,6 @@ async def _resolve_with_stimulus_retries( should_respond ) expected_gripper = {NodeId.gripper}.intersection(should_respond) - expected_hepa_uv = {NodeId.hepa_uv}.intersection(should_respond) while True: pipettes, gripper, hepa_uv = await _do_tool_resolve( @@ -224,12 +225,10 @@ async def _resolve_with_stimulus_retries( output_queue.put_nowait((pipettes, gripper, hepa_uv)) seen_pipettes = set([k.application_for() for k in pipettes.keys()]) seen_gripper = set([k.application_for() for k in gripper.keys()]) - seen_hepa_uv = set([k.application_for() for k in hepa_uv.keys()]) if all( [ seen_pipettes == expected_pipettes, seen_gripper == expected_gripper, - seen_hepa_uv == expected_hepa_uv, ] ): return