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