Home Assistant Unofficial Reference 2024.12.1
models.py
Go to the documentation of this file.
1 """The doorbird integration models."""
2 
3 from __future__ import annotations
4 
5 from dataclasses import dataclass
6 from typing import Any
7 
8 from homeassistant.config_entries import ConfigEntry
9 
10 from .device import ConfiguredDoorBird
11 
12 type DoorBirdConfigEntry = ConfigEntry[DoorBirdData]
13 
14 
15 @dataclass
17  """Data for the doorbird integration."""
18 
19  door_station: ConfiguredDoorBird
20  door_station_info: dict[str, Any]
21 
22  #
23  # This integration uses a different event for
24  # each entity id. It would be a major breaking
25  # change to change this to a single event at this
26  # point.
27  #
28  # Do not copy this pattern in the future
29  # for any new integrations.
30  #
31  event_entity_ids: dict[str, str]