Skip to content

Commit 1462644

Browse files
vivien-applepull[bot]
authored andcommitted
[matter_yamltests] Properly convert wait values from str to int if necessary in the WaitFor command (#26541)
1 parent 5df603b commit 1462644

File tree

1 file changed

+1
-1
lines changed
  • scripts/py_matter_yamltests/matter_yamltests/pseudo_clusters/clusters

1 file changed

+1
-1
lines changed

scripts/py_matter_yamltests/matter_yamltests/pseudo_clusters/clusters/delay_commands.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async def WaitForMs(self, request):
5858
duration_in_ms = argument['value']
5959

6060
sys.stdout.flush()
61-
time.sleep(duration_in_ms / 1000)
61+
time.sleep(int(duration_in_ms) / 1000)
6262

6363
async def WaitForMessage(self, request):
6464
AccessoryServerBridge.waitForMessage(request)

0 commit comments

Comments
 (0)