From c0d46ac7622b253db8ea5f6ae62561306c3a2d26 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Mon, 9 Dec 2024 16:15:13 +0100 Subject: [PATCH] fixup! wip - change session behavior [no changelog] --- python/src/trezorlib/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/src/trezorlib/client.py b/python/src/trezorlib/client.py index b331059cfc..1c0c37bc9e 100644 --- a/python/src/trezorlib/client.py +++ b/python/src/trezorlib/client.py @@ -130,6 +130,7 @@ class TrezorClient: self, passphrase: str | object | None = None, derive_cardano: bool = False, + session_id: int = 0, ) -> Session: """ Returns initialized session (with derived seed). @@ -144,7 +145,7 @@ class TrezorClient: return SessionV1.new(self, passphrase, derive_cardano) if isinstance(self.protocol, ProtocolV2): assert isinstance(passphrase, str) or passphrase is None - return SessionV2.new(self, passphrase, derive_cardano) + return SessionV2.new(self, passphrase, derive_cardano, session_id) raise NotImplementedError # TODO def resume_session(self, session: Session):