Skip to content

Commit

Permalink
Update api/src/opentrons/protocol_api/core/engine/instrument.py
Browse files Browse the repository at this point in the history
Co-authored-by: Max Marrone <[email protected]>
  • Loading branch information
sanni-t and SyntaxColoring authored Jan 30, 2025
1 parent 09e9765 commit c252cc2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions api/src/opentrons/protocol_api/core/engine/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,11 +735,7 @@ def get_pipette_name(self) -> str:
# https://opentrons.atlassian.net/browse/RLIQ-251
pipette = self._engine_client.state.pipettes.get(self._pipette_id)
if self._protocol_core.api_version < _FLEX_PIPETTE_NAMES_FIXED_IN:
return (
pipette.pipetteName.value
if isinstance(pipette.pipetteName, PipetteNameType)
else pipette.pipetteName
)
return pipette.pipetteName.value
else:
name = next(
(
Expand Down

0 comments on commit c252cc2

Please sign in to comment.