From 8cf667ff9f7044ef904477702a7a357d259ed42b Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Fri, 31 Jan 2025 16:08:56 +0100 Subject: [PATCH] chore(core): allow SkipPairing only on debug [no changelog] --- core/src/trezor/wire/thp/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/trezor/wire/thp/__init__.py b/core/src/trezor/wire/thp/__init__.py index 4eee9280a8..bbc5a62c6c 100644 --- a/core/src/trezor/wire/thp/__init__.py +++ b/core/src/trezor/wire/thp/__init__.py @@ -146,10 +146,8 @@ def get_enabled_pairing_methods( Returns pairing methods that are currently allowed by the device with respect to the wire interface the host communicates on. """ - import usb - methods = _DEFAULT_ENABLED_PAIRING_METHODS.copy() - if iface is not None and iface is usb.iface_wire: + if __debug__: methods.append(ThpPairingMethod.SkipPairing) return methods