Remove entity description mixin in Melnor (#112906)
This commit is contained in:
parent
14e7e4c860
commit
62817ba338
4 changed files with 15 additions and 50 deletions
|
@ -23,21 +23,14 @@ from .models import (
|
|||
)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class MelnorZoneTimeEntityDescriptionMixin:
|
||||
"""Mixin for required keys."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class MelnorZoneTimeEntityDescription(TimeEntityDescription):
|
||||
"""Describes Melnor number entity."""
|
||||
|
||||
set_time_fn: Callable[[Valve, time], Coroutine[Any, Any, None]]
|
||||
state_fn: Callable[[Valve], Any]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class MelnorZoneTimeEntityDescription(
|
||||
TimeEntityDescription, MelnorZoneTimeEntityDescriptionMixin
|
||||
):
|
||||
"""Describes Melnor number entity."""
|
||||
|
||||
|
||||
ZONE_ENTITY_DESCRIPTIONS: list[MelnorZoneTimeEntityDescription] = [
|
||||
MelnorZoneTimeEntityDescription(
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue