FrappyNode.doInit must super call SecNodeDevice.doInit

This commit is contained in:
l_samenv
2024-06-04 08:16:08 +02:00
parent 974e729920
commit e121c3ca8e

View File

@ -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"""