Skip to content

Commit 8644738

Browse files
committed
[Python] Fix Command API argument type errors
NativeLibraryHandleMethodArguments correctly setting the arguments uncovered some incorrectly set arguments.
1 parent 270f286 commit 8644738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controller/python/chip/clusters/Command.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -467,13 +467,13 @@ def Init():
467467
setter = chip.native.NativeLibraryHandleMethodArguments(handle)
468468

469469
setter.Set('pychip_CommandSender_SendCommand',
470-
PyChipError, [py_object, c_void_p, c_uint16, c_uint32, c_uint32, c_char_p, c_size_t, c_uint16, c_bool])
470+
PyChipError, [py_object, c_void_p, c_uint16, c_uint16, c_uint32, c_uint32, c_char_p, c_size_t, c_uint16, c_uint16, c_bool])
471471
setter.Set('pychip_CommandSender_SendBatchCommands',
472472
PyChipError, [py_object, c_void_p, c_uint16, c_uint16, c_uint16, c_bool, POINTER(PyInvokeRequestData), c_size_t])
473473
setter.Set('pychip_CommandSender_TestOnlySendBatchCommands',
474474
PyChipError, [py_object, c_void_p, c_uint16, c_uint16, c_uint16, c_bool, TestOnlyPyBatchCommandsOverrides, POINTER(PyInvokeRequestData), c_size_t])
475475
setter.Set('pychip_CommandSender_TestOnlySendCommandTimedRequestNoTimedInvoke',
476-
PyChipError, [py_object, c_void_p, c_uint32, c_uint32, c_char_p, c_size_t, c_uint16, c_bool])
476+
PyChipError, [py_object, c_void_p, c_uint16, c_uint32, c_uint32, c_char_p, c_size_t, c_uint16, c_uint16, c_bool])
477477
setter.Set('pychip_CommandSender_SendGroupCommand',
478478
PyChipError, [c_uint16, c_void_p, c_uint32, c_uint32, c_char_p, c_size_t, c_uint16])
479479
setter.Set('pychip_CommandSender_InitCallbacks', None, [

0 commit comments

Comments
 (0)