diff --git a/homeassistant/components/plugwise/number.py b/homeassistant/components/plugwise/number.py index 9865aec2242..2c87edddf04 100644 --- a/homeassistant/components/plugwise/number.py +++ b/homeassistant/components/plugwise/number.py @@ -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 diff --git a/homeassistant/components/plugwise/select.py b/homeassistant/components/plugwise/select.py index 138e5fe3b59..c12ca671554 100644 --- a/homeassistant/components/plugwise/select.py +++ b/homeassistant/components/plugwise/select.py @@ -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 = (