mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Remove Plugwise entity descriptions required fields mixins (#104004)
This commit is contained in:
parent
54c98f32c2
commit
17f0676483
@ -23,19 +23,11 @@ from .coordinator import PlugwiseDataUpdateCoordinator
|
|||||||
from .entity import PlugwiseEntity
|
from .entity import PlugwiseEntity
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass(kw_only=True)
|
||||||
class PlugwiseEntityDescriptionMixin:
|
class PlugwiseNumberEntityDescription(NumberEntityDescription):
|
||||||
"""Mixin values for Plugwise entities."""
|
|
||||||
|
|
||||||
command: Callable[[Smile, str, str, float], Awaitable[None]]
|
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
|
||||||
class PlugwiseNumberEntityDescription(
|
|
||||||
NumberEntityDescription, PlugwiseEntityDescriptionMixin
|
|
||||||
):
|
|
||||||
"""Class describing Plugwise Number entities."""
|
"""Class describing Plugwise Number entities."""
|
||||||
|
|
||||||
|
command: Callable[[Smile, str, str, float], Awaitable[None]]
|
||||||
key: NumberType
|
key: NumberType
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,21 +18,13 @@ from .coordinator import PlugwiseDataUpdateCoordinator
|
|||||||
from .entity import PlugwiseEntity
|
from .entity import PlugwiseEntity
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass(kw_only=True)
|
||||||
class PlugwiseSelectDescriptionMixin:
|
class PlugwiseSelectEntityDescription(SelectEntityDescription):
|
||||||
"""Mixin values for Plugwise Select entities."""
|
|
||||||
|
|
||||||
command: Callable[[Smile, str, str], Awaitable[None]]
|
|
||||||
options_key: SelectOptionsType
|
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
|
||||||
class PlugwiseSelectEntityDescription(
|
|
||||||
SelectEntityDescription, PlugwiseSelectDescriptionMixin
|
|
||||||
):
|
|
||||||
"""Class describing Plugwise Select entities."""
|
"""Class describing Plugwise Select entities."""
|
||||||
|
|
||||||
|
command: Callable[[Smile, str, str], Awaitable[None]]
|
||||||
key: SelectType
|
key: SelectType
|
||||||
|
options_key: SelectOptionsType
|
||||||
|
|
||||||
|
|
||||||
SELECT_TYPES = (
|
SELECT_TYPES = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user