1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-27 20:49:02 +00:00
trezor-firmware/python/src/trezorlib/ble.py

20 lines
343 B
Python

import typing as t
from . import messages
if t.TYPE_CHECKING:
from .transport.session import Session
def unpair(
session: "Session",
all: bool,
):
resp = session.call(messages.BleUnpair(all=all))
if isinstance(resp, messages.Success):
return
else:
raise RuntimeError(f"Unexpected message {resp}")