Remove entity description mixin in Screenlogic (#112935)

* Remove entity description mixin in Screenlogic

* Fix
This commit is contained in:
Joost Lekkerkerker 2024-03-12 16:10:04 +01:00 committed by GitHub
parent 5e530fc42e
commit 70f3da93d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 18 additions and 39 deletions

View file

@ -36,21 +36,16 @@ from .util import cleanup_excluded_entity, get_ha_unit
_LOGGER = logging.getLogger(__name__)
@dataclasses.dataclass(frozen=True)
class ScreenLogicSensorMixin:
"""Mixin for SecreenLogic sensor entity."""
@dataclasses.dataclass(frozen=True, kw_only=True)
class ScreenLogicSensorDescription(
SensorEntityDescription, ScreenLogicEntityDescription
):
"""Describes a ScreenLogic sensor."""
value_mod: Callable[[int | str], int | str] | None = None
@dataclasses.dataclass(frozen=True)
class ScreenLogicSensorDescription(
ScreenLogicSensorMixin, SensorEntityDescription, ScreenLogicEntityDescription
):
"""Describes a ScreenLogic sensor."""
@dataclasses.dataclass(frozen=True)
@dataclasses.dataclass(frozen=True, kw_only=True)
class ScreenLogicPushSensorDescription(
ScreenLogicSensorDescription, ScreenLogicPushEntityDescription
):