From 85cd810f22b57b58d0797babc588c3aab4da65cd Mon Sep 17 00:00:00 2001 From: snijder <snijder@astron.nl> Date: Thu, 16 Mar 2023 14:05:06 +0100 Subject: [PATCH] L2SS-1204 Formatting --- .../tangostationcontrol/devices/station_manager.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tangostationcontrol/tangostationcontrol/devices/station_manager.py b/tangostationcontrol/tangostationcontrol/devices/station_manager.py index 1748e7656..ee7a410d9 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 -- GitLab