2021-06-24 14:56:43 +00:00
|
|
|
"""Models for the DSMR integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from dataclasses import dataclass
|
2021-07-27 12:44:58 +00:00
|
|
|
|
|
|
|
from homeassistant.components.sensor import SensorEntityDescription
|
2021-06-24 14:56:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
2021-07-27 12:44:58 +00:00
|
|
|
class DSMRSensorEntityDescription(SensorEntityDescription):
|
2021-06-24 14:56:43 +00:00
|
|
|
"""Represents an DSMR Sensor."""
|
|
|
|
|
|
|
|
dsmr_versions: set[str] | None = None
|
|
|
|
is_gas: bool = False
|