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)
|
self.restart(value)
|
||||||
|
|
||||||
def doInit(self, mode):
|
def doInit(self, mode):
|
||||||
if mode == SIMULATION or session.sessiontype == POLLER:
|
if mode != SIMULATION and session.sessiontype != POLLER:
|
||||||
super().doInit(mode)
|
|
||||||
else:
|
|
||||||
fc = session.devices.get('frappy')
|
fc = session.devices.get('frappy')
|
||||||
if fc:
|
if fc:
|
||||||
cfg, running = fc.get_init_info(self.service)
|
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):
|
if cfg and (':' not in cfg and cfg != running):
|
||||||
self._set_status(status.ERROR, 'cfg changed')
|
self._set_status(status.ERROR, 'cfg changed')
|
||||||
return
|
return
|
||||||
if self.uri:
|
super().doInit(mode)
|
||||||
try:
|
|
||||||
self._connect()
|
|
||||||
except Exception:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def doStop(self):
|
def doStop(self):
|
||||||
"""never busy"""
|
"""never busy"""
|
||||||
|
Reference in New Issue
Block a user