FrappyNode.doInit must super call SecNodeDevice.doInit
This commit is contained in:
10
devices.py
10
devices.py
@ -682,9 +682,7 @@ class FrappyNode(SecNodeDevice, Moveable):
|
||||
self.restart(value)
|
||||
|
||||
def doInit(self, mode):
|
||||
if mode == SIMULATION or session.sessiontype == POLLER:
|
||||
super().doInit(mode)
|
||||
else:
|
||||
if mode != SIMULATION and session.sessiontype != POLLER:
|
||||
fc = session.devices.get('frappy')
|
||||
if fc:
|
||||
cfg, running = fc.get_init_info(self.service)
|
||||
@ -693,11 +691,7 @@ class FrappyNode(SecNodeDevice, Moveable):
|
||||
if cfg and (':' not in cfg and cfg != running):
|
||||
self._set_status(status.ERROR, 'cfg changed')
|
||||
return
|
||||
if self.uri:
|
||||
try:
|
||||
self._connect()
|
||||
except Exception:
|
||||
pass
|
||||
super().doInit(mode)
|
||||
|
||||
def doStop(self):
|
||||
"""never busy"""
|
||||
|
Reference in New Issue
Block a user