2022-07-08 23:55:31 +00:00
|
|
|
"""Models for bluetooth."""
|
2024-03-08 13:51:32 +00:00
|
|
|
|
2022-07-08 23:55:31 +00:00
|
|
|
from __future__ import annotations
|
|
|
|
|
2022-08-17 00:52:53 +00:00
|
|
|
from collections.abc import Callable
|
|
|
|
from enum import Enum
|
2022-07-08 23:55:31 +00:00
|
|
|
|
2022-11-15 20:00:52 +00:00
|
|
|
from home_assistant_bluetooth import BluetoothServiceInfoBleak
|
2022-07-08 23:55:31 +00:00
|
|
|
|
2022-11-20 14:44:28 +00:00
|
|
|
BluetoothChange = Enum("BluetoothChange", "ADVERTISEMENT")
|
|
|
|
BluetoothCallback = Callable[[BluetoothServiceInfoBleak, BluetoothChange], None]
|
|
|
|
ProcessAdvertisementCallback = Callable[[BluetoothServiceInfoBleak], bool]
|