@@ -291,7 +291,7 @@ def TestOnlySendCommandTimedRequestFlagWithNoTimedInvoke(future: Future, eventLo
291
291
))
292
292
293
293
294
- def SendCommand (future : Future , eventLoop , responseType : Type , device , commandPath : CommandPath , payload : ClusterCommand ,
294
+ async def SendCommand (future : Future , eventLoop , responseType : Type , device , commandPath : CommandPath , payload : ClusterCommand ,
295
295
timedRequestTimeoutMs : Union [None , int ] = None , interactionTimeoutMs : Union [None , int ] = None , busyWaitMs : Union [None , int ] = None ,
296
296
suppressResponse : Union [None , bool ] = None ) -> PyChipError :
297
297
''' Send a cluster-object encapsulated command to a device and does the following:
@@ -316,7 +316,7 @@ def SendCommand(future: Future, eventLoop, responseType: Type, device, commandPa
316
316
317
317
payloadTLV = payload .ToTLV ()
318
318
ctypes .pythonapi .Py_IncRef (ctypes .py_object (transaction ))
319
- return builtins .chipStack .Call (
319
+ return await builtins .chipStack .CallAsync (
320
320
lambda : handle .pychip_CommandSender_SendCommand (
321
321
ctypes .py_object (transaction ), device ,
322
322
c_uint16 (0 if timedRequestTimeoutMs is None else timedRequestTimeoutMs ), commandPath .EndpointId ,
0 commit comments