pull/35314/head
Trey Moen 1 week ago
parent 37c6b681a0
commit c0a8125d08
  1. 16
      system/hardware/tici/esim.py
  2. 1
      system/hardware/tici/tests/test_esim.py

@ -53,22 +53,6 @@ class LPA2:
return profile
return None
def list_notifications(self) -> list[dict[str, str]]:
"""
List notifications from the LPA.
"""
msgs = self._invoke('notification', 'list')
self.validate_successful(msgs)
notifications = []
for notification in msgs[-1]['payload']['data']:
notifications.append({
"sequence_number": notification['seqNumber'],
"profile_management_operation": notification['profileManagementOperation'],
"notification_address": notification['notificationAddress'],
"iccid": notification['iccid'],
})
return notifications
def process_notifications(self) -> None:
"""
Process notifications from the LPA, typically to activate/deactivate the profile with the carrier.

@ -17,7 +17,6 @@ def cleanup():
except LPAProfileNotFoundError:
pass
lpa.process_notifications()
assert len(lpa.list_notifications()) == 0
class TestEsim:

Loading…
Cancel
Save