update interactive frappy client

Change-Id: Icf0ce4c7e2f99ac65e2b47e8fa1efb497322922a
This commit is contained in:
zolliker 2023-02-02 17:33:36 +01:00
parent 6b9d4a8140
commit ae7d3514a1

View File

@ -318,12 +318,12 @@ class SecopClient(ProxyClient):
ident = None ident = None
if action in UPDATE_MESSAGES: if action in UPDATE_MESSAGES:
module_param = self.internal.get(ident, None) module_param = self.internal.get(ident, None)
if module_param is None and ':' not in ident: if module_param is None and ':' not in (ident or ''):
# allow missing ':value'/':target' # allow missing ':value'/':target'
if action == WRITEREPLY: if action == WRITEREPLY:
module_param = self.internal.get(ident + ':target', None) module_param = self.internal.get('%s:target' % ident, None)
else: else:
module_param = self.internal.get(ident + ':value', None) module_param = self.internal.get('%s:value' % ident, None)
if module_param is not None: if module_param is not None:
if action.startswith(ERRORPREFIX): if action.startswith(ERRORPREFIX):
timestamp = data[2].get('t', None) timestamp = data[2].get('t', None)