From 0cb0e02c5cb6feaafe28a1ea291a5a7838f9d58e Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 31 May 2024 09:44:57 +0200 Subject: [PATCH] esim.saip: Introduce ProfileElement.identification property Change-Id: I6525bb78619e574296488843e021d505e0632d99 --- pySim/esim/saip/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pySim/esim/saip/__init__.py b/pySim/esim/saip/__init__.py index e5b99e79..9fa568c7 100644 --- a/pySim/esim/saip/__init__.py +++ b/pySim/esim/saip/__init__.py @@ -197,6 +197,13 @@ class ProfileElement: """Return the decoded ProfileHeader.""" return self.decoded.get(self.header_name, None) + @property + def identification(self): + if self.header: + return self.header['identification'] + else: + return None + @property def templateID(self): """Return the decoded templateID used by this profile element (if any)."""