diff --git a/tangostationcontrol/tangostationcontrol/devices/station_manager.py b/tangostationcontrol/tangostationcontrol/devices/station_manager.py index 1748e76567be69580b5676112ab1e33536302d69..ee7a410d96b8a6009e5b92cf4164f8ba408e191d 100644 --- a/tangostationcontrol/tangostationcontrol/devices/station_manager.py +++ b/tangostationcontrol/tangostationcontrol/devices/station_manager.py @@ -18,7 +18,6 @@ from tangostationcontrol.devices.lofar_device import LOFARDevice from tangostationcontrol.common.lofar_logging import log_exceptions from enum import Enum -#from enum import StrEnum logger = logging.getLogger() @@ -32,6 +31,7 @@ class StationState(Enum): STANDBY = "STANDBY" ON = "ON" + @device_logging_to_python() class StationManager(LOFARDevice): @@ -43,7 +43,6 @@ class StationManager(LOFARDevice): StationState.ON: [StationState.STANDBY], } - # ----------------- # Device Properties # ----------------- @@ -154,7 +153,9 @@ class StationManager(LOFARDevice): @log_exceptions() def station_hibernate(self): if not self._is_transition_allowed(StationState.HIBERNATE): - logger.warning(f"Station did not transition to {StationState.HIBERNATE.name}") + logger.warning( + f"Station did not transition to {StationState.HIBERNATE.name}" + ) return # call the correct state transition function