File tree 2 files changed +10
-3
lines changed
scripts/py_matter_idl/matter_idl
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ def attribute_name(attribute: Attribute) -> str:
54
54
55
55
def not_stable (maturity : ApiMaturity ):
56
56
"""Determine if the given api maturity allows binary/api changes or not."""
57
- # TODO: internal and deprecated not currently widely used,
58
- # so we enforce stability on them for now.
59
- return maturity == ApiMaturity .PROVISIONAL
57
+ # NOTE: deprecated are not to be used, so we expect no changes. They were
58
+ # probably "stable" at some point
59
+ return ( maturity == ApiMaturity .PROVISIONAL ) or ( maturity == ApiMaturity . INTERNAL )
60
60
61
61
62
62
class CompatibilityChecker :
Original file line number Diff line number Diff line change @@ -188,6 +188,13 @@ def test_provisional_cluster(self):
188
188
"provisional server cluster A = 16 { enum X : ENUM8 { A = 1; B = 3; } info event A = 2 { int16u x = 1;} }" ,
189
189
Compatibility .ALL_OK )
190
190
191
+ def test_internal_cluster (self ):
192
+ self .ValidateUpdate (
193
+ "Internal cluster changes are ok." ,
194
+ "internal server cluster A = 16 { enum X : ENUM8 { A = 1; B = 2; } info event A = 1 { int8u x = 1;} }" ,
195
+ "internal server cluster A = 16 { enum X : ENUM8 { A = 1; B = 3; } info event A = 2 { int16u x = 1;} }" ,
196
+ Compatibility .ALL_OK )
197
+
191
198
def test_clusters_enum_code (self ):
192
199
self .ValidateUpdate (
193
200
"Adding an enum is ok. Also validates code formatting" ,
You can’t perform that action at this time.
0 commit comments