Skip to content

Commit

Permalink
Fix default initialization of CAT values in Matter Testing Support (#…
Browse files Browse the repository at this point in the history
…22116)

This fixes the default initialization of the `controller_cat_tags` field
in `MatterTestingSupport` class to correctly be initialized to an empty
list, since that is what is expected by FabricAdmin.NewController (and
others).

Testing:

Repro'ed the failure described in #22114, and then confirmed this fixes
it.
  • Loading branch information
mrjerryjohns authored Aug 25, 2022
1 parent 72d2378 commit ad0d4b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python_testing/matter_testing_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class MatterTestConfig:
# Node ID to use for controller/commissioner
controller_node_id: int = _DEFAULT_CONTROLLER_NODE_ID
# CAT Tags for default controller/commissioner
controller_cat_tags: List[int] = None
controller_cat_tags: List[int] = field(default_factory=list)

# Fabric ID which to use
fabric_id: int = None
Expand Down

0 comments on commit ad0d4b5

Please sign in to comment.