From eeec97e89a94062b5db83a5e54cda8ba6b310d7c Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Thu, 3 Apr 2025 00:23:21 +0200 Subject: [PATCH] fix(python): always send passphrase at v1 session start --- python/src/trezorlib/client.py | 3 +-- tests/device_tests/test_protection_levels.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/src/trezorlib/client.py b/python/src/trezorlib/client.py index f6aafce176..051f162e9a 100644 --- a/python/src/trezorlib/client.py +++ b/python/src/trezorlib/client.py @@ -120,8 +120,7 @@ class TrezorClient: self, derive_cardano=derive_cardano, ) - if self.features.passphrase_protection: - derive_seed(session, passphrase) + derive_seed(session, passphrase) return session raise NotImplementedError diff --git a/tests/device_tests/test_protection_levels.py b/tests/device_tests/test_protection_levels.py index 3e66d639a5..2473f1e4e2 100644 --- a/tests/device_tests/test_protection_levels.py +++ b/tests/device_tests/test_protection_levels.py @@ -475,6 +475,7 @@ def test_unlocked(client: Client): [ (v1, messages.Features), _pin_request(client), + (v1, messages.Address), messages.Address, ] )