diff --git a/scripts/py_matter_idl/matter_idl/backwards_compatibility.py b/scripts/py_matter_idl/matter_idl/backwards_compatibility.py index 99adaf7a64bc0b..04377100312756 100644 --- a/scripts/py_matter_idl/matter_idl/backwards_compatibility.py +++ b/scripts/py_matter_idl/matter_idl/backwards_compatibility.py @@ -279,8 +279,10 @@ def _check_cluster_list_compatible(self, original: List[Cluster], updated: List[ for original_cluster in original: updated_cluster = updated_clusters.get(original_cluster.name) - if not_stable(updated_cluster.api_maturity) or not_stable(original_cluster.api_maturity): - # no point in checking + if not_stable(original_cluster.api_maturity): + continue + + if updated_cluster and not_stable(updated_cluster.api_maturity): continue self._check_cluster_compatible(original_cluster, updated_cluster)