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:
parent
7461af68b9
commit
a234f2ab31
2 changed files with 0 additions and 23 deletions
|
@ -11,8 +11,6 @@ ATTR_STATE_LOCKED: Final = "locked"
|
||||||
ATTR_STATE_SUMMER_MODE: Final = "summer_mode"
|
ATTR_STATE_SUMMER_MODE: Final = "summer_mode"
|
||||||
ATTR_STATE_WINDOW_OPEN: Final = "window_open"
|
ATTR_STATE_WINDOW_OPEN: Final = "window_open"
|
||||||
|
|
||||||
ATTR_TEMPERATURE_UNIT: Final = "temperature_unit"
|
|
||||||
|
|
||||||
CONF_CONNECTIONS: Final = "connections"
|
CONF_CONNECTIONS: Final = "connections"
|
||||||
CONF_COORDINATOR: Final = "coordinator"
|
CONF_COORDINATOR: Final = "coordinator"
|
||||||
|
|
||||||
|
|
|
@ -7,16 +7,6 @@ from typing import Callable, TypedDict
|
||||||
from pyfritzhome import FritzhomeDevice
|
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):
|
class FritzExtraAttributes(TypedDict):
|
||||||
"""TypedDict for sensors extra attributes."""
|
"""TypedDict for sensors extra attributes."""
|
||||||
|
|
||||||
|
@ -34,17 +24,6 @@ class ClimateExtraAttributes(FritzExtraAttributes, total=False):
|
||||||
window_open: bool
|
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
|
@dataclass
|
||||||
class FritzEntityDescriptionMixinBase:
|
class FritzEntityDescriptionMixinBase:
|
||||||
"""Bases description mixin for Fritz!Smarthome entities."""
|
"""Bases description mixin for Fritz!Smarthome entities."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue