From 97a419cd2ad5deb60a19864af1fd1a29ff973d3f Mon Sep 17 00:00:00 2001 From: Trey Moen Date: Tue, 20 May 2025 19:30:11 -0700 Subject: [PATCH] reorganize --- system/hardware/tici/esim.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/system/hardware/tici/esim.py b/system/hardware/tici/esim.py index c957bd4de3..cbfeade7bf 100755 --- a/system/hardware/tici/esim.py +++ b/system/hardware/tici/esim.py @@ -42,12 +42,6 @@ class LPA2: def get_active_profile(self) -> dict[str, str] | None: return next((p for p in self.list_profiles() if p['enabled']), None) - def process_notifications(self) -> None: - """ - Process notifications from the LPA, typically to activate/deactivate the profile with the carrier. - """ - self.validate_successful(self._invoke('notification', 'process', '-a', '-r')) - def enable_profile(self, iccid: str) -> None: self.validate_profile_exists(iccid) latest = self.get_active_profile() @@ -94,6 +88,12 @@ class LPA2: self.validate_profile_exists(iccid) self.validate_successful(self._invoke('profile', 'nickname', iccid, nickname)) + def process_notifications(self) -> None: + """ + Process notifications stored on the eUICC, typically to activate/deactivate the profile with the carrier. + """ + self.validate_successful(self._invoke('notification', 'process', '-a', '-r')) + def validate_profile_exists(self, iccid: str) -> None: if not any(p['iccid'] == iccid for p in self.list_profiles()): raise LPAProfileNotFoundError(f'profile {iccid} does not exist')