mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00:00
Remove entity description mixin in EnOcean (#112483)
Remove entity description mixin in Enocean
This commit is contained in:
parent
3e7d42a83b
commit
e041c3aa0f
@ -44,20 +44,13 @@ SENSOR_TYPE_TEMPERATURE = "temperature"
|
||||
SENSOR_TYPE_WINDOWHANDLE = "windowhandle"
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class EnOceanSensorEntityDescriptionMixin:
|
||||
"""Mixin for required keys."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class EnOceanSensorEntityDescription(SensorEntityDescription):
|
||||
"""Describes EnOcean sensor entity."""
|
||||
|
||||
unique_id: Callable[[list[int]], str | None]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class EnOceanSensorEntityDescription(
|
||||
SensorEntityDescription, EnOceanSensorEntityDescriptionMixin
|
||||
):
|
||||
"""Describes EnOcean sensor entity."""
|
||||
|
||||
|
||||
SENSOR_DESC_TEMPERATURE = EnOceanSensorEntityDescription(
|
||||
key=SENSOR_TYPE_TEMPERATURE,
|
||||
name="Temperature",
|
||||
|
Loading…
x
Reference in New Issue
Block a user