From 78b53d39d5d2f134447f95fe3d4c080ad2d4d6e9 Mon Sep 17 00:00:00 2001 From: Morg42 <43153739+Morg42@users.noreply.github.com> Date: Sun, 16 Feb 2025 09:51:40 +0100 Subject: [PATCH] sdp: add checked_value to resend processing --- lib/model/smartdeviceplugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/model/smartdeviceplugin.py b/lib/model/smartdeviceplugin.py index 385222b8e..99ef37d36 100644 --- a/lib/model/smartdeviceplugin.py +++ b/lib/model/smartdeviceplugin.py @@ -873,10 +873,11 @@ def captures_value(pattern): elif isinstance(reply_pattern, list): return_list = [] for r in reply_pattern: + checked_value = self._commands._commands[command]._check_value(value) if not captures_value(r): return_list.append(re.compile(r)) - elif value not in return_list: - return_list.append(value) + elif checked_value not in return_list: + return_list.append(checked_value) reply_pattern = None if None in return_list else return_list resend_info = {'command': resend_command, 'returnvalue': reply_pattern, 'read_cmd': read_cmd, 'lookup': lookup, 'lookup_ci': lookup_ci} # if reply pattern does not expect a specific value, use value as expected reply