1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 11:28:14 +00:00

python: passphrase on host is the default for T1

This commit is contained in:
Tomas Susanka 2020-01-29 10:26:06 +00:00 committed by Pavol Rusnak
parent f21c13f0bd
commit dc53df772f
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -136,6 +136,9 @@ class TrezorClient:
self.session_counter = 0
self.init_device()
if self.features.model == "1": # TODO @matejcik: move this to the UI object
self.passphrase_on_host = True
def open(self):
if self.session_counter == 0:
self.transport.begin_session()