Remove entity description mixin in Kaleidescape (#112896)
This commit is contained in:
parent
da40e83fd9
commit
d95f30611e
1 changed files with 3 additions and 10 deletions
|
@ -22,20 +22,13 @@ if TYPE_CHECKING:
|
|||
from homeassistant.helpers.typing import StateType
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class BaseEntityDescriptionMixin:
|
||||
"""Mixin for required descriptor keys."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class KaleidescapeSensorEntityDescription(SensorEntityDescription):
|
||||
"""Describes Kaleidescape sensor entity."""
|
||||
|
||||
value_fn: Callable[[KaleidescapeDevice], StateType]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class KaleidescapeSensorEntityDescription(
|
||||
SensorEntityDescription, BaseEntityDescriptionMixin
|
||||
):
|
||||
"""Describes Kaleidescape sensor entity."""
|
||||
|
||||
|
||||
SENSOR_TYPES: tuple[KaleidescapeSensorEntityDescription, ...] = (
|
||||
KaleidescapeSensorEntityDescription(
|
||||
key="media_location",
|
||||
|
|
Loading…
Add table
Reference in a new issue