diff --git a/src/controller/python/chip/setup_payload/setup_payload.py b/src/controller/python/chip/setup_payload/setup_payload.py index c6a6b6a690e423..1f70983ad9a7ff 100644 --- a/src/controller/python/chip/setup_payload/setup_payload.py +++ b/src/controller/python/chip/setup_payload/setup_payload.py @@ -122,6 +122,10 @@ def __InitNativeFunctions(self, chipLib): # Getters from parsed contents. # Prefer using the methods below to access setup payload information once parse. + @property + def version(self) -> int: + return int(self.attributes.get("Version", "0")) + @property def vendor_id(self) -> int: return int(self.attributes.get("VendorID", "0"))