From 0043f001d62cda36ea349044a40382b2e8aa20e3 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 12 Jan 2023 13:27:17 +0000 Subject: [PATCH] Fix indent in chip.configuration python module (#24376) The GetCommissionerCAT function body has wrong indent, which breaks the import of the package. --- src/controller/python/chip/configuration/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controller/python/chip/configuration/__init__.py b/src/controller/python/chip/configuration/__init__.py index b64b5f0fa35de5..c4c65bcf7f171e 100644 --- a/src/controller/python/chip/configuration/__init__.py +++ b/src/controller/python/chip/configuration/__init__.py @@ -61,11 +61,11 @@ def SetCommissionerCAT(cat: int): def GetCommissionerCAT() -> int: - """Returns the current local (controllers/commissioning) device CAT. If none has been set, - a default is set and used.""" - global _local_cat + """Returns the current local (controllers/commissioning) device CAT. If none has been set, + a default is set and used.""" + global _local_cat - if _local_cat is None: + if _local_cat is None: SetCommissionerCAT(DEFAULT_COMMISSIONER_CAT) return _local_cat