Files
core/homeassistant/components/fritzbox/model.py
T
epenetGitHubcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>frenck
d766aae436 Remove import annotations from components (#169536)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
2026-04-30 21:14:48 +02:00

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]