1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

python: do not send deprecated state in PassphraseAck on T1

This commit is contained in:
matejcik 2020-02-10 15:37:44 +01:00
parent ff702c7d7f
commit 8d93503c9c

View File

@ -186,8 +186,12 @@ class TrezorClient:
available_on_device = Capability.PassphraseEntry in self.features.capabilities
def send_passphrase(passphrase=None, on_device=None):
if self.features.model == "1":
state = None
else:
state = self.session_id
msg = messages.PassphraseAck(
_state=self.session_id, passphrase=passphrase, on_device=on_device
_state=state, passphrase=passphrase, on_device=on_device
)
resp = self.call_raw(msg)
if isinstance(resp, messages.Deprecated_PassphraseStateRequest):