diff --git a/RCUSCC/RCUSCC/RCUSCC.py b/RCUSCC/RCUSCC/RCUSCC.py index fca3532ff2479461e8405c61ce967c02c7535f1b..6fd823a820025c2bf8e749a258c1f6752592f9e4 100644 --- a/RCUSCC/RCUSCC/RCUSCC.py +++ b/RCUSCC/RCUSCC/RCUSCC.py @@ -211,6 +211,16 @@ class RCUSCC(Device): """Initialises the attributes and properties of the RCUSCC.""" Device.init_device(self) + self.Init() + + @command( + ) + @DebugIt() + def Init(self): + """ + + :return:None + """ self.set_state(DevState.INIT) # Init the dict that contains attribute to OPC-UA MP/CP mappings. @@ -278,6 +288,14 @@ class RCUSCC(Device): # Everything went ok -- go online self.On() + @DebugIt() + def On(self): + """ + + :return:None + """ + self.set_state(DevState.ON) + def always_executed_hook(self): """Method always executed before any TANGO command is executed.""" @@ -420,16 +438,6 @@ class RCUSCC(Device): # Commands # -------- - @command( - ) - @DebugIt() - def On(self): - """ - - :return:None - """ - self.set_state(DevState.ON) - @command( ) @DebugIt()