From 44f83b78e2530a2952adffcd388e6a162976278b Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Fri, 7 Jul 2023 14:00:27 +0200 Subject: [PATCH] trezor: model T is 'T', not '2' --- electrum/plugins/trezor/clientbase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/plugins/trezor/clientbase.py b/electrum/plugins/trezor/clientbase.py index 8683c8b42..b4822ada0 100644 --- a/electrum/plugins/trezor/clientbase.py +++ b/electrum/plugins/trezor/clientbase.py @@ -292,7 +292,7 @@ class TrezorClientBase(HardwareClientBase, Logger): limit = 9 if self.features.model == "1" and (1, 10, 0) <= self.client.version: limit = 50 - elif self.features.model == "2" and (2, 4, 0) <= self.client.version: + elif self.features.model == "T" and (2, 4, 0) <= self.client.version: limit = 50 if len(pin) > limit: self.handler.show_error(_('The PIN cannot be longer than {} characters.').format(limit))