Home Assistant Unofficial Reference 2024.12.1
models.py
Go to the documentation of this file.
1 """Models for the HomeKit component."""
2 
3 from __future__ import annotations
4 
5 from dataclasses import dataclass
6 from typing import TYPE_CHECKING
7 
8 from homeassistant.config_entries import ConfigEntry
9 
10 if TYPE_CHECKING:
11  from . import HomeKit
12 
13 type HomeKitConfigEntry = ConfigEntry[HomeKitEntryData]
14 
15 
16 @dataclass
18  """Class to hold HomeKit data."""
19 
20  homekit: HomeKit
21  pairing_qr: bytes | None = None
22  pairing_qr_secret: str | None = None