diff --git a/RCUSCC/RCUSCC/RCUSCC.py b/RCUSCC/RCUSCC/RCUSCC.py index 6fd823a820025c2bf8e749a258c1f6752592f9e4..30bd2aabe9c0feeb0200ce907af1640e25062438 100644 --- a/RCUSCC/RCUSCC/RCUSCC.py +++ b/RCUSCC/RCUSCC/RCUSCC.py @@ -206,21 +206,12 @@ class RCUSCC(Device): self.debug_stream("Mapping OPC-UA MP/CP to attributes done.") - def init_device(self): """Initialises the attributes and properties of the RCUSCC.""" - Device.init_device(self) - - self.Init() - @command( - ) - @DebugIt() - def Init(self): - """ + # NOTE: Will delete_device first, if necessary + Device.init_device(self) - :return:None - """ self.set_state(DevState.INIT) # Init the dict that contains attribute to OPC-UA MP/CP mappings. @@ -312,6 +303,7 @@ class RCUSCC(Device): self.Off() self.debug_stream("Shut down. Good bye.") + # ------------------ # Attributes methods # ------------------ @@ -438,6 +430,17 @@ class RCUSCC(Device): # Commands # -------- + @command( + ) + @DebugIt() + def Init(self): + """ + + :return:None + """ + + self.init_device() + @command( ) @DebugIt()