Home Assistant Unofficial Reference 2024.12.1
models.py
Go to the documentation of this file.
1 """Models for bluetooth."""
2 
3 from __future__ import annotations
4 
5 from collections.abc import Callable
6 from enum import Enum
7 
8 from home_assistant_bluetooth import BluetoothServiceInfoBleak
9 
10 BluetoothChange = Enum("BluetoothChange", "ADVERTISEMENT")
11 type BluetoothCallback = Callable[[BluetoothServiceInfoBleak, BluetoothChange], None]
12 type ProcessAdvertisementCallback = Callable[[BluetoothServiceInfoBleak], bool]