Skip to content

Commit 44513fa

Browse files
[Python] SetupPayload export version property. (project-chip#27959)
1 parent 3251934 commit 44513fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/controller/python/chip/setup_payload/setup_payload.py

+4
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ def __InitNativeFunctions(self, chipLib):
122122
# Getters from parsed contents.
123123
# Prefer using the methods below to access setup payload information once parse.
124124

125+
@property
126+
def version(self) -> int:
127+
return int(self.attributes.get("Version", "0"))
128+
125129
@property
126130
def vendor_id(self) -> int:
127131
return int(self.attributes.get("VendorID", "0"))

0 commit comments

Comments
 (0)