diff --git a/src/controller/python/chip/ChipDeviceCtrl.py b/src/controller/python/chip/ChipDeviceCtrl.py index d43340b6f89da3..6e90b396b2aafb 100644 --- a/src/controller/python/chip/ChipDeviceCtrl.py +++ b/src/controller/python/chip/ChipDeviceCtrl.py @@ -345,7 +345,7 @@ def SetWiFiCredentials(self, ssid, credentials): return self._ChipStack.Call( lambda: self._dmLib.pychip_DeviceController_SetWiFiCredentials( - ssid.encode("utf-8"), credentials.encode("utf-8")) + ssid, credentials) ) def SetThreadOperationalDataset(self, threadOperationalDataset):