Skip to content

Commit

Permalink
Remove Wiz entity descriptions required fields mixins (#104005)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Nov 24, 2023
1 parent 6f54aaf commit 560ac3d
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions homeassistant/components/wiz/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,13 @@
from .models import WizData


@dataclass
class WizNumberEntityDescriptionMixin:
"""Mixin to describe a WiZ number entity."""
@dataclass(kw_only=True)
class WizNumberEntityDescription(NumberEntityDescription):
"""Class to describe a WiZ number entity."""

value_fn: Callable[[wizlight], int | None]
set_value_fn: Callable[[wizlight, int], Coroutine[None, None, None]]
required_feature: str


@dataclass
class WizNumberEntityDescription(
NumberEntityDescription, WizNumberEntityDescriptionMixin
):
"""Class to describe a WiZ number entity."""
set_value_fn: Callable[[wizlight, int], Coroutine[None, None, None]]
value_fn: Callable[[wizlight], int | None]


async def _async_set_speed(device: wizlight, speed: int) -> None:
Expand Down

0 comments on commit 560ac3d

Please sign in to comment.