1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-15 15:46:06 +00:00

chore(core): allow SkipPairing only on debug

[no changelog]
This commit is contained in:
M1nd3r 2025-01-31 16:08:56 +01:00
parent fba2bc9a08
commit 91c9f8bcf0

View File

@ -146,10 +146,8 @@ def get_enabled_pairing_methods(
Returns pairing methods that are currently allowed by the device Returns pairing methods that are currently allowed by the device
with respect to the wire interface the host communicates on. with respect to the wire interface the host communicates on.
""" """
import usb
methods = _DEFAULT_ENABLED_PAIRING_METHODS.copy() methods = _DEFAULT_ENABLED_PAIRING_METHODS.copy()
if iface is not None and iface is usb.iface_wire: if __debug__:
methods.append(ThpPairingMethod.SkipPairing) methods.append(ThpPairingMethod.SkipPairing)
return methods return methods