cli: Fix cmd_parameter generation for nested for python 3.9 (#205)

Signed-off-by: Peter-Simon Dieterich <peter-simon.dieterich@vaillant-group.com>
This commit is contained in:
Peter-Simon Dieterich
2024-03-13 18:22:17 +08:00
committed by GitHub
parent c1eb213d4a
commit 22b7898f20
+1 -1
View File
@@ -704,7 +704,7 @@ class HFMFNested(ReaderRequiredUnit):
if nt_level == 0: # It's a staticnested tag?
nt_uid_obj = self.cmd.mf1_static_nested_acquire(
block_known, type_known, key_known, block_target, type_target)
cmd_param = f"{nt_uid_obj['uid']} {str(type_target)}"
cmd_param = f"{nt_uid_obj['uid']} {int(type_target)}"
for nt_item in nt_uid_obj['nts']:
cmd_param += f" {nt_item['nt']} {nt_item['nt_enc']}"
tool_name = "staticnested"