Skip to content

Commit

Permalink
Remove DSMR entity descriptions required fields mixins (#104002)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Nov 15, 2023
1 parent 17f0676 commit ce1e6ce
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions homeassistant/components/dsmr/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,13 @@
UNIT_CONVERSION = {"m3": UnitOfVolume.CUBIC_METERS}


@dataclass
class DSMRSensorEntityDescriptionMixin:
"""Mixin for required keys."""

obis_reference: str


@dataclass
class DSMRSensorEntityDescription(
SensorEntityDescription, DSMRSensorEntityDescriptionMixin
):
@dataclass(kw_only=True)
class DSMRSensorEntityDescription(SensorEntityDescription):
"""Represents an DSMR Sensor."""

dsmr_versions: set[str] | None = None
is_gas: bool = False
obis_reference: str


SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
Expand Down

0 comments on commit ce1e6ce

Please sign in to comment.