FrappyNode.doInit must super call SecNodeDevice.doInit

This commit is contained in:
l_samenv
2024-06-04 08:16:08 +02:00
committed by Markus Zolliker
parent 666cefb6a6
commit cb99a73935

View File

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