@@ -238,7 +238,7 @@ class MotorizedStage(Device):
238238 firmware : Optional [str ] = Field (None , title = "Firmware" )
239239
240240
241- class Immersion (Enum ):
241+ class ImmersionMedia (Enum ):
242242 """Immersion media name"""
243243
244244 AIR = "air"
@@ -262,7 +262,7 @@ class Objective(Device):
262262 device_type : Literal ["Objective" ] = Field ("Objective" , const = True , readOnly = True )
263263 numerical_aperture : Decimal = Field (..., title = "Numerical aperture (in air)" )
264264 magnification : Decimal = Field (..., title = "Magnification" )
265- immersion : Immersion = Field (..., title = "Immersion" )
265+ immersion : ImmersionMedia = Field (..., title = "Immersion" )
266266 objective_type : Optional [ObjectiveType ] = Field (None , title = "Objective type" )
267267
268268
@@ -548,7 +548,7 @@ class Detector(Device):
548548 detector_type : DetectorType = Field (..., title = "Detector Type" )
549549 data_interface : DataInterface = Field (..., title = "Data interface" )
550550 cooling : Cooling = Field (..., title = "Cooling" )
551- immersion : Optional [Immersion ] = Field (None , title = "Immersion" )
551+ immersion : Optional [ImmersionMedia ] = Field (None , title = "Immersion" )
552552 chroma : Optional [CameraChroma ] = Field (None , title = "Camera chroma" )
553553 sensor_width : Optional [int ] = Field (None , title = "Width of the sensor in pixels" )
554554 sensor_height : Optional [int ] = Field (None , title = "Height of the sensor in pixels" )
0 commit comments