diff --git a/src/controller/python/chip-device-ctrl.py b/src/controller/python/chip-device-ctrl.py index 2949ec1f324adc..c7414487a7ddde 100755 --- a/src/controller/python/chip-device-ctrl.py +++ b/src/controller/python/chip-device-ctrl.py @@ -920,7 +920,7 @@ def do_setpairingthreadcredential(self, line): print("Usage:") self.do_help("set-pairing-thread-credential") return - self.devCtrl.SetThreadOperationalDataset(args[0].encode("utf-8")) + self.devCtrl.SetThreadOperationalDataset(bytes.fromhex(args[0])) except Exception as ex: print(str(ex)) return