core/homeassistant/components/xiaomi_ble/const.py

22 lines
514 B
Python

"""Constants for the Xiaomi Bluetooth integration."""
from __future__ import annotations
from typing import Final, TypedDict
DOMAIN = "xiaomi_ble"
CONF_EVENT_PROPERTIES: Final = "event_properties"
EVENT_PROPERTIES: Final = "event_properties"
EVENT_TYPE: Final = "event_type"
XIAOMI_BLE_EVENT: Final = "xiaomi_ble_event"
class XiaomiBleEvent(TypedDict):
"""Xiaomi BLE event data."""
device_id: str
address: str
event_type: str
event_properties: dict[str, str | int | float | None] | None