try to treat FrappyNode.target == 'None' properly

This commit is contained in:
2024-06-25 11:16:28 +02:00
parent 868abb4ea2
commit c237718a2d

View File

@ -256,7 +256,7 @@ class FrappyConfig(Device):
secnode = session.devices.get(secnodename) secnode = session.devices.get(secnodename)
if secnode: if secnode:
cfgs[secnode.service] = secnode.get_info() cfgs[secnode.service] = secnode.get_info()
targets[secnode.service] = secnode.target targets[secnode.service] = None if secnode.target == 'None' else secnode.target
self._current_cfgs = cfgs self._current_cfgs = cfgs
self._target_cfgs = targets self._target_cfgs = targets
return cfgs, targets return cfgs, targets