mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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
|
from .const import DOMAIN
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class SmappeeRequiredKeysMixin:
|
class SmappeeSensorEntityDescription(SensorEntityDescription):
|
||||||
"""Mixin for required keys."""
|
"""Describes Smappee sensor entity."""
|
||||||
|
|
||||||
sensor_id: str
|
sensor_id: str
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class SmappeeSensorEntityDescription(SensorEntityDescription, SmappeeRequiredKeysMixin):
|
|
||||||
"""Describes Smappee sensor entity."""
|
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class SmappeePollingSensorEntityDescription(SmappeeSensorEntityDescription):
|
class SmappeePollingSensorEntityDescription(SmappeeSensorEntityDescription):
|
||||||
"""Describes Smappee sensor entity."""
|
"""Describes Smappee sensor entity."""
|
||||||
|
|
||||||
local_polling: bool = False
|
local_polling: bool = False
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class SmappeeVoltageSensorEntityDescription(SmappeeSensorEntityDescription):
|
class SmappeeVoltageSensorEntityDescription(SmappeeSensorEntityDescription):
|
||||||
"""Describes Smappee sensor entity."""
|
"""Describes Smappee sensor entity."""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user