1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-25 17:56:30 +01:00
Files
core/homeassistant/components/bluetooth/models.py
T
2026-04-30 21:14:48 +02:00

11 lines
378 B
Python

"""Models for bluetooth."""
from collections.abc import Callable
from enum import Enum
from home_assistant_bluetooth import BluetoothServiceInfoBleak
BluetoothChange = Enum("BluetoothChange", "ADVERTISEMENT")
type BluetoothCallback = Callable[[BluetoothServiceInfoBleak, BluetoothChange], None]
type ProcessAdvertisementCallback = Callable[[BluetoothServiceInfoBleak], bool]