From 118956020f0090b7ba89136204ddbda36eba8275 Mon Sep 17 00:00:00 2001 From: hidaris Date: Wed, 22 Jun 2022 00:18:13 +0800 Subject: [PATCH] remove duplicate str encode in py SetWiFiCredentials (#19792) --- src/controller/python/chip/ChipDeviceCtrl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):