frappy_psi.sea: use secnode.name to determine the service

this fix is only needed in case uri is not given
This commit is contained in:
2025-07-02 11:20:58 +02:00
parent 83f40f0c33
commit 926dcd09e2

View File

@ -126,8 +126,7 @@ class SeaClient(ProxyClient, Module):
_last_connect = 0
def __init__(self, name, log, opts, srv):
nodename = srv.node_cfg.get('name') or srv.node_cfg.get('equipment_id')
instance = nodename.rsplit('_', 1)[0]
instance = srv.secnode.name.rsplit('_', 1)[0]
if 'uri' not in opts:
self._instance = instance
port = get_sea_port(instance)