mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Remove entity description mixin in Landisgyr Heat Meter (#112901)
This commit is contained in:
parent
62817ba338
commit
324fc51375
@ -40,20 +40,13 @@ from . import DOMAIN
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class HeatMeterSensorEntityDescriptionMixin:
|
||||
"""Mixin for additional Heat Meter sensor description attributes ."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class HeatMeterSensorEntityDescription(SensorEntityDescription):
|
||||
"""Heat Meter sensor description."""
|
||||
|
||||
value_fn: Callable[[HeatMeterResponse], StateType | datetime]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class HeatMeterSensorEntityDescription(
|
||||
SensorEntityDescription, HeatMeterSensorEntityDescriptionMixin
|
||||
):
|
||||
"""Heat Meter sensor description."""
|
||||
|
||||
|
||||
HEAT_METER_SENSOR_TYPES = (
|
||||
HeatMeterSensorEntityDescription(
|
||||
key="heat_usage_mwh",
|
||||
|
Loading…
x
Reference in New Issue
Block a user