From 192373492646c5f6038af05d317bf05f160c731f Mon Sep 17 00:00:00 2001 From: Max Marrone Date: Fri, 1 Sep 2023 10:23:11 -0400 Subject: [PATCH] fix(robot-server): Resolve LabwareRole pickle warnings (#13444) --- robot-server/robot_server/persistence/legacy_pickle.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/robot-server/robot_server/persistence/legacy_pickle.py b/robot-server/robot_server/persistence/legacy_pickle.py index 29119f9b3f9..0ad36054cbc 100644 --- a/robot-server/robot_server/persistence/legacy_pickle.py +++ b/robot-server/robot_server/persistence/legacy_pickle.py @@ -158,6 +158,11 @@ def _get_legacy_ot_types() -> List[_LegacyTypeInfo]: _LegacyTypeInfo(original_name="LabwareMovementStrategy", current_type=LabwareMovementStrategy) ) + from opentrons_shared_data.labware.labware_definition import LabwareRole + _legacy_ot_types.append( + _LegacyTypeInfo(original_name="LabwareRole", current_type=LabwareRole) + ) + from opentrons.protocol_engine import ModuleModel _legacy_ot_types.append( _LegacyTypeInfo(original_name="ModuleModel", current_type=ModuleModel)