diff --git a/csaxs_bec/devices/jungfraujoch/jungfrau_joch_client.py b/csaxs_bec/devices/jungfraujoch/jungfrau_joch_client.py index 4d2ab01..420462d 100644 --- a/csaxs_bec/devices/jungfraujoch/jungfrau_joch_client.py +++ b/csaxs_bec/devices/jungfraujoch/jungfrau_joch_client.py @@ -19,7 +19,7 @@ class JungfrauJochClientError(Exception): """Base class for exceptions in this module.""" -class DetectorState(enum.StrEnum): +class DetectorState(str, enum.Enum): """Possible Detector states for Jungfrau Joch detector""" INACTIVE = "Inactive" @@ -30,7 +30,7 @@ class DetectorState(enum.StrEnum): ERROR = "Error" -class ResponseWaitDone(enum.IntEnum): +class ResponseWaitDone(int, enum.Enum): """Response state for Jungfrau Joch detector wait till done call""" DETECTOR_IDLE = 200