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)
23
class
FritzEntityDescriptionMixinBase
:
24
"""Bases description mixin for Fritz!Smarthome entities."""
25
26
suitable: Callable[[FritzhomeDevice], bool]
homeassistant.components.fritzbox.model.ClimateExtraAttributes
Definition:
model.py:12
homeassistant.components.fritzbox.model.FritzEntityDescriptionMixinBase
Definition:
model.py:23
homeassistant.components.media_player.total
total
Definition:
__init__.py:1348
core
homeassistant
components
fritzbox
model.py
Generated by
1.9.1