From 8557ec86be9e94dd0efb97b5acfd0d556a2a48e7 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Wed, 14 Jan 2026 01:58:37 +0100 Subject: [PATCH] saip: ProfileElementSD: call _post_decode() when instantiating with decoded argument Otherwise self.keys is not generated from the given data and encoding will fail. Change-Id: I3020f581a908fecc01d5d255ab5991ce1652e3ec --- pySim/esim/saip/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pySim/esim/saip/__init__.py b/pySim/esim/saip/__init__.py index f8a854dd..5ca87aa8 100644 --- a/pySim/esim/saip/__init__.py +++ b/pySim/esim/saip/__init__.py @@ -1032,6 +1032,7 @@ class ProfileElementSD(ProfileElement): def __init__(self, decoded: Optional[dict] = None, **kwargs): super().__init__(decoded, **kwargs) if decoded: + self._post_decode() return # provide some reasonable defaults for a MNO-SD self.decoded['instance'] = {