mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Remove entity description mixin in Smappee (#112941)
This commit is contained in:
parent
f5c8732307
commit
fb23d5e6fb
@ -19,26 +19,21 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from .const import DOMAIN
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class SmappeeRequiredKeysMixin:
|
||||
"""Mixin for required keys."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class SmappeeSensorEntityDescription(SensorEntityDescription):
|
||||
"""Describes Smappee sensor entity."""
|
||||
|
||||
sensor_id: str
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class SmappeeSensorEntityDescription(SensorEntityDescription, SmappeeRequiredKeysMixin):
|
||||
"""Describes Smappee sensor entity."""
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class SmappeePollingSensorEntityDescription(SmappeeSensorEntityDescription):
|
||||
"""Describes Smappee sensor entity."""
|
||||
|
||||
local_polling: bool = False
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class SmappeeVoltageSensorEntityDescription(SmappeeSensorEntityDescription):
|
||||
"""Describes Smappee sensor entity."""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user