diff --git a/RCUSCC/RCUSCC/RCUSCC.py b/RCUSCC/RCUSCC/RCUSCC.py index 2555956523c9d776b289742c39f1ffc62d528ad8..dd30828d352e6bb3127beef2d9c59e674956d0ce 100644 --- a/RCUSCC/RCUSCC/RCUSCC.py +++ b/RCUSCC/RCUSCC/RCUSCC.py @@ -604,8 +604,7 @@ class RCUSCC(Device): # Commands # -------- - @command( - ) + @command() @only_in_states([DevState.FAULT, DevState.OFF]) @DebugIt() def Init(self): @@ -627,8 +626,7 @@ class RCUSCC(Device): self.set_state(DevState.STANDBY) - @command( - ) + @command() @only_in_states([DevState.STANDBY]) @DebugIt() def On(self): @@ -640,8 +638,7 @@ class RCUSCC(Device): self.set_state(DevState.ON) - @command( - ) + @command() @DebugIt() def Off(self): """ @@ -662,8 +659,7 @@ class RCUSCC(Device): # Turn off again, in case of race conditions through reconnecting self.set_state(DevState.OFF) - @command( - ) + @command() @only_in_states([DevState.ON, DevState.INIT, DevState.STANDBY]) @DebugIt() def Fault(self): @@ -678,8 +674,7 @@ class RCUSCC(Device): """ self.set_state(DevState.FAULT) - @command( - ) + @command() @DebugIt() def RCU_off(self): """ @@ -688,8 +683,7 @@ class RCUSCC(Device): """ self.function_mapping["RCU_off"]() - @command( - ) + @command() @DebugIt() def RCU_on(self): """ @@ -698,8 +692,7 @@ class RCUSCC(Device): """ self.function_mapping["RCU_on"]() - @command( - ) + @command() @DebugIt() def ADC_on(self): """ @@ -708,8 +701,7 @@ class RCUSCC(Device): """ self.function_mapping["ADC_on"]() - @command( - ) + @command() @DebugIt() def RCU_update(self): """ @@ -722,8 +714,6 @@ class RCUSCC(Device): # ---------- # Run server # ---------- - - def main(args=None, **kwargs): """Main function of the RCUSCC module.""" return run((RCUSCC,), args=args, **kwargs)