From 1e9c5634b8278228fd62f25faa94a740f7f171db Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 14 Feb 2023 19:15:18 +0100 Subject: [PATCH] [python] fix chip-device-ctrl (#25054) Fix what has been broken by CertificateAuthority + Manager support in Python (#21981). --- src/controller/python/chip-device-ctrl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controller/python/chip-device-ctrl.py b/src/controller/python/chip-device-ctrl.py index 8fea531834edad..e9022910e80667 100755 --- a/src/controller/python/chip-device-ctrl.py +++ b/src/controller/python/chip-device-ctrl.py @@ -176,7 +176,9 @@ def __init__(self, rendezvousAddr=None, controllerNodeId=1, bluetoothAdapter=Non self.chipStack = ChipStack.ChipStack( bluetoothAdapter=bluetoothAdapter, persistentStoragePath='/tmp/chip-device-ctrl-storage.json') - self.fabricAdmin = FabricAdmin.FabricAdmin(0xFFF1) + self.certificateAuthorityManager = chip.CertificateAuthority.CertificateAuthorityManager(chipStack=self.chipStack) + self.certificateAuthority = self.certificateAuthorityManager.NewCertificateAuthority() + self.fabricAdmin = self.certificateAuthority.NewFabricAdmin(vendorId=0xFFF1, fabricId=1) self.devCtrl = self.fabricAdmin.NewController( nodeId=controllerNodeId, useTestCommissioner=True)