From bdcb5b576b6f3048132f751f0a2cd4dad4a28fe4 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 afca59e7bf..7663ee478c 100644 --- a/tests/device_tests/test_protection_levels.py +++ b/tests/device_tests/test_protection_levels.py @@ -476,6 +476,7 @@ def test_unlocked(client: Client): [ (v1, messages.Features), _pin_request(client), + (v1, messages.Address), messages.Address, ] )