1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-09 22:22:38 +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 3a366482e5
commit 8cf667ff9f

View File

@ -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