You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/src/apps/management/ble/disconnect.py

17 lines
379 B

from trezorio import ble
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from trezor.messages import BLEDisconnect, Success
async def disconnect(_msg: BLEDisconnect) -> Success:
from trezor.messages import Success
from trezor.ui.layouts import confirm_action
await confirm_action("ble_disconnect", "DISCONNECT")
ble.disconnect()
return Success()