From b4fb147dc47ec6bb95b174f3b8fdebf7f2088891 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Mon, 15 May 2023 16:04:40 +0200 Subject: [PATCH] [matter_yamltests] Properly convert wait values from str to int if necessary in the WaitFor command (#26541) --- .../matter_yamltests/pseudo_clusters/clusters/delay_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/py_matter_yamltests/matter_yamltests/pseudo_clusters/clusters/delay_commands.py b/scripts/py_matter_yamltests/matter_yamltests/pseudo_clusters/clusters/delay_commands.py index 0536dd2bfb4110..fdb949da9b1449 100644 --- a/scripts/py_matter_yamltests/matter_yamltests/pseudo_clusters/clusters/delay_commands.py +++ b/scripts/py_matter_yamltests/matter_yamltests/pseudo_clusters/clusters/delay_commands.py @@ -58,7 +58,7 @@ async def WaitForMs(self, request): duration_in_ms = argument['value'] sys.stdout.flush() - time.sleep(duration_in_ms / 1000) + time.sleep(int(duration_in_ms) / 1000) async def WaitForMessage(self, request): AccessoryServerBridge.waitForMessage(request)