From 95b578c99ad492ac235e5871d26471e74a16b871 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Mon, 14 Jul 2025 14:50:43 +0200 Subject: [PATCH] fix(core): use `interact` for ble pairing instead of `raise_if_cancelled` [no changelog] --- core/src/apps/management/ble/pair_new_device.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/apps/management/ble/pair_new_device.py b/core/src/apps/management/ble/pair_new_device.py index 48299f3456..0b0611b692 100644 --- a/core/src/apps/management/ble/pair_new_device.py +++ b/core/src/apps/management/ble/pair_new_device.py @@ -3,7 +3,7 @@ import trezorui_api from storage import device as storage_device from trezor import utils from trezor.crypto import random -from trezor.ui.layouts import CONFIRMED, raise_if_cancelled +from trezor.ui.layouts import CONFIRMED, interact from trezor.wire import ActionCancelled @@ -35,7 +35,7 @@ async def pair_new_device() -> None: label = storage_device.get_label() or _default_ble_name() ble.start_advertising(False, label) try: - code = await raise_if_cancelled( + code = await interact( trezorui_api.show_pairing_device_name( device_name=label, ), @@ -45,7 +45,7 @@ async def pair_new_device() -> None: raise ActionCancelled try: - result = await raise_if_cancelled( + result = await interact( trezorui_api.show_ble_pairing_code( title="Bluetooth pairing", description="Pairing code match?",