mirror of
https://github.com/home-assistant/core.git
synced 2026-05-29 19:57:40 +01:00
d766aae436
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
25 lines
594 B
Python
25 lines
594 B
Python
"""Models for the AVM FRITZ!SmartHome integration."""
|
|
|
|
from collections.abc import Callable
|
|
from dataclasses import dataclass
|
|
from typing import TypedDict
|
|
|
|
from pyfritzhome import FritzhomeDevice
|
|
|
|
|
|
class ClimateExtraAttributes(TypedDict, total=False):
|
|
"""TypedDict for climates extra attributes."""
|
|
|
|
battery_level: int
|
|
battery_low: bool
|
|
holiday_mode: bool
|
|
summer_mode: bool
|
|
window_open: bool
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class FritzEntityDescriptionMixinBase:
|
|
"""Bases description mixin for Fritz!Smarthome entities."""
|
|
|
|
suitable: Callable[[FritzhomeDevice], bool]
|