1 """Models for bluetooth."""
3 from __future__
import annotations
5 from collections.abc
import Callable
8 from home_assistant_bluetooth
import BluetoothServiceInfoBleak
10 BluetoothChange = Enum(
"BluetoothChange",
"ADVERTISEMENT")
11 type BluetoothCallback = Callable[[BluetoothServiceInfoBleak, BluetoothChange],
None]
12 type ProcessAdvertisementCallback = Callable[[BluetoothServiceInfoBleak], bool]