mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +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__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class HeatMeterSensorEntityDescriptionMixin:
|
class HeatMeterSensorEntityDescription(SensorEntityDescription):
|
||||||
"""Mixin for additional Heat Meter sensor description attributes ."""
|
"""Heat Meter sensor description."""
|
||||||
|
|
||||||
value_fn: Callable[[HeatMeterResponse], StateType | datetime]
|
value_fn: Callable[[HeatMeterResponse], StateType | datetime]
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class HeatMeterSensorEntityDescription(
|
|
||||||
SensorEntityDescription, HeatMeterSensorEntityDescriptionMixin
|
|
||||||
):
|
|
||||||
"""Heat Meter sensor description."""
|
|
||||||
|
|
||||||
|
|
||||||
HEAT_METER_SENSOR_TYPES = (
|
HEAT_METER_SENSOR_TYPES = (
|
||||||
HeatMeterSensorEntityDescription(
|
HeatMeterSensorEntityDescription(
|
||||||
key="heat_usage_mwh",
|
key="heat_usage_mwh",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user