1
mirror of https://github.com/home-assistant/core synced 2024-07-30 21:18:57 +02:00

Remove dead fritzbox code (#55617)

* EntityInfo has been replaced by EntityDescription (#55104)
* Extra switch attributes have been replaced by dedicated sensors (#52562)
This commit is contained in:
Marc Mueller 2021-09-03 17:48:48 +02:00 committed by GitHub
parent 7461af68b9
commit a234f2ab31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 23 deletions

View File

@ -11,8 +11,6 @@ ATTR_STATE_LOCKED: Final = "locked"
ATTR_STATE_SUMMER_MODE: Final = "summer_mode"
ATTR_STATE_WINDOW_OPEN: Final = "window_open"
ATTR_TEMPERATURE_UNIT: Final = "temperature_unit"
CONF_CONNECTIONS: Final = "connections"
CONF_COORDINATOR: Final = "coordinator"

View File

@ -7,16 +7,6 @@ from typing import Callable, TypedDict
from pyfritzhome import FritzhomeDevice
class EntityInfo(TypedDict):
"""TypedDict for EntityInfo."""
name: str
entity_id: str
unit_of_measurement: str | None
device_class: str | None
state_class: str | None
class FritzExtraAttributes(TypedDict):
"""TypedDict for sensors extra attributes."""
@ -34,17 +24,6 @@ class ClimateExtraAttributes(FritzExtraAttributes, total=False):
window_open: bool
class SwitchExtraAttributes(TypedDict, total=False):
"""TypedDict for sensors extra attributes."""
device_locked: bool
locked: bool
total_consumption: str
total_consumption_unit: str
temperature: str
temperature_unit: str
@dataclass
class FritzEntityDescriptionMixinBase:
"""Bases description mixin for Fritz!Smarthome entities."""