From 43731685f26d84a82c6af8285118e20d99eeb823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Szablowski?= <56074162+doublemis1@users.noreply.github.com> Date: Mon, 20 Dec 2021 20:32:47 +0100 Subject: [PATCH] Fix Python Chip Controller: set pairing thread credential (#13159) --- src/controller/python/chip-device-ctrl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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