Remove entity description mixin in Skybell (#112939)

This commit is contained in:
Joost Lekkerkerker 2024-03-11 11:57:38 +01:00 committed by GitHub
parent 37e0a9d9c7
commit a1a0738e58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,20 +23,13 @@ from homeassistant.helpers.typing import StateType
from .entity import DOMAIN, SkybellEntity
@dataclass(frozen=True)
class SkybellSensorEntityDescriptionMixIn:
"""Mixin for Skybell sensor."""
@dataclass(frozen=True, kw_only=True)
class SkybellSensorEntityDescription(SensorEntityDescription):
"""Class to describe a Skybell sensor."""
value_fn: Callable[[SkybellDevice], StateType | datetime]
@dataclass(frozen=True)
class SkybellSensorEntityDescription(
SensorEntityDescription, SkybellSensorEntityDescriptionMixIn
):
"""Class to describe a Skybell sensor."""
SENSOR_TYPES: tuple[SkybellSensorEntityDescription, ...] = (
SkybellSensorEntityDescription(
key="chime_level",