Remove Plugwise entity descriptions required fields mixins (#104004)
parent
54c98f32c2
commit
17f0676483
|
@ -23,19 +23,11 @@ from .coordinator import PlugwiseDataUpdateCoordinator
|
|||
from .entity import PlugwiseEntity
|
||||
|
||||
|
||||
@dataclass
|
||||
class PlugwiseEntityDescriptionMixin:
|
||||
"""Mixin values for Plugwise entities."""
|
||||
|
||||
command: Callable[[Smile, str, str, float], Awaitable[None]]
|
||||
|
||||
|
||||
@dataclass
|
||||
class PlugwiseNumberEntityDescription(
|
||||
NumberEntityDescription, PlugwiseEntityDescriptionMixin
|
||||
):
|
||||
@dataclass(kw_only=True)
|
||||
class PlugwiseNumberEntityDescription(NumberEntityDescription):
|
||||
"""Class describing Plugwise Number entities."""
|
||||
|
||||
command: Callable[[Smile, str, str, float], Awaitable[None]]
|
||||
key: NumberType
|
||||
|
||||
|
||||
|
|
|
@ -18,21 +18,13 @@ from .coordinator import PlugwiseDataUpdateCoordinator
|
|||
from .entity import PlugwiseEntity
|
||||
|
||||
|
||||
@dataclass
|
||||
class PlugwiseSelectDescriptionMixin:
|
||||
"""Mixin values for Plugwise Select entities."""
|
||||
|
||||
command: Callable[[Smile, str, str], Awaitable[None]]
|
||||
options_key: SelectOptionsType
|
||||
|
||||
|
||||
@dataclass
|
||||
class PlugwiseSelectEntityDescription(
|
||||
SelectEntityDescription, PlugwiseSelectDescriptionMixin
|
||||
):
|
||||
@dataclass(kw_only=True)
|
||||
class PlugwiseSelectEntityDescription(SelectEntityDescription):
|
||||
"""Class describing Plugwise Select entities."""
|
||||
|
||||
command: Callable[[Smile, str, str], Awaitable[None]]
|
||||
key: SelectType
|
||||
options_key: SelectOptionsType
|
||||
|
||||
|
||||
SELECT_TYPES = (
|
||||
|
|
Loading…
Reference in New Issue