mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-05-28 19:58:45 +00:00
22 lines
377 B
Python
22 lines
377 B
Python
import typing as t
|
|
|
|
from . import messages
|
|
from .tools import session
|
|
|
|
if t.TYPE_CHECKING:
|
|
from ..client import TrezorClient
|
|
|
|
|
|
@session
|
|
def unpair(
|
|
client: "TrezorClient",
|
|
all: bool,
|
|
):
|
|
|
|
resp = client.call(messages.BleUnpair(all=all))
|
|
|
|
if isinstance(resp, messages.Success):
|
|
return
|
|
else:
|
|
raise RuntimeError(f"Unexpected message {resp}")
|