Home Assistant Unofficial Reference 2024.12.1
model.py
Go to the documentation of this file.
1 """Models for the AVM FRITZ!SmartHome integration."""
2 
3 from __future__ import annotations
4 
5 from collections.abc import Callable
6 from dataclasses import dataclass
7 from typing import TypedDict
8 
9 from pyfritzhome import FritzhomeDevice
10 
11 
12 class ClimateExtraAttributes(TypedDict, total=False):
13  """TypedDict for climates extra attributes."""
14 
15  battery_level: int
16  battery_low: bool
17  holiday_mode: bool
18  summer_mode: bool
19  window_open: bool
20 
21 
22 @dataclass(frozen=True)
24  """Bases description mixin for Fritz!Smarthome entities."""
25 
26  suitable: Callable[[FritzhomeDevice], bool]