Skip to content

Commit

Permalink
Use consistent casing for newly added parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
agners committed Dec 14, 2023
1 parent 36240c0 commit e88702b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller/python/chip/ChipDeviceCtrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1893,7 +1893,7 @@ def CommissionOnNetwork(self, nodeId: int, setupPinCode: int,
return PyChipError(CHIP_ERROR_TIMEOUT)
return self._ChipStack.commissioningEventRes

def CommissionWithCode(self, setupPayload: str, nodeid: int, network_only: bool = False) -> PyChipError:
def CommissionWithCode(self, setupPayload: str, nodeid: int, networkOnly: bool = False) -> PyChipError:
''' Commission with the given nodeid from the setupPayload.
setupPayload may be a QR or manual code.
'''
Expand All @@ -1909,7 +1909,7 @@ def CommissionWithCode(self, setupPayload: str, nodeid: int, network_only: bool

self._ChipStack.CallAsync(
lambda: self._dmLib.pychip_DeviceController_ConnectWithCode(
self.devCtrl, setupPayload, nodeid, network_only)
self.devCtrl, setupPayload, nodeid, networkOnly)
)
if not self._ChipStack.commissioningCompleteEvent.isSet():
# Error 50 is a timeout
Expand Down

0 comments on commit e88702b

Please sign in to comment.