diff --git a/src/controller/python/chip/ChipDeviceCtrl.py b/src/controller/python/chip/ChipDeviceCtrl.py index 9cbd7a32d20715..dc8db81f0c6ab7 100644 --- a/src/controller/python/chip/ChipDeviceCtrl.py +++ b/src/controller/python/chip/ChipDeviceCtrl.py @@ -878,7 +878,7 @@ def deviceAvailable(self, device, err): # The callback might have been received synchronously (during self._ChipStack.Call()). # In that case the Future has already been set it will return immediately - if (timeoutMs): + if timeoutMs: timeout = float(timeoutMs) / 1000 await asyncio.wait_for(future, timeout=timeout) else: