Remove entity description mixin in Screenlogic (#112935)
* Remove entity description mixin in Screenlogic * Fix
This commit is contained in:
parent
5e530fc42e
commit
70f3da93d4
7 changed files with 18 additions and 39 deletions
|
@ -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
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue