mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Remove entity description mixin in Switcher Kis (#112945)
This commit is contained in:
parent
02ef7ba134
commit
b8ae5e2388
@ -30,21 +30,14 @@ from .const import SIGNAL_DEVICE_ADD
|
|||||||
from .utils import get_breeze_remote_manager
|
from .utils import get_breeze_remote_manager
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class SwitcherThermostatButtonDescriptionMixin:
|
class SwitcherThermostatButtonEntityDescription(ButtonEntityDescription):
|
||||||
"""Mixin to describe a Switcher Thermostat Button entity."""
|
"""Class to describe a Switcher Thermostat Button entity."""
|
||||||
|
|
||||||
press_fn: Callable[[SwitcherType2Api, SwitcherBreezeRemote], SwitcherBaseResponse]
|
press_fn: Callable[[SwitcherType2Api, SwitcherBreezeRemote], SwitcherBaseResponse]
|
||||||
supported: Callable[[SwitcherBreezeRemote], bool]
|
supported: Callable[[SwitcherBreezeRemote], bool]
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class SwitcherThermostatButtonEntityDescription(
|
|
||||||
ButtonEntityDescription, SwitcherThermostatButtonDescriptionMixin
|
|
||||||
):
|
|
||||||
"""Class to describe a Switcher Thermostat Button entity."""
|
|
||||||
|
|
||||||
|
|
||||||
THERMOSTAT_BUTTONS = [
|
THERMOSTAT_BUTTONS = [
|
||||||
SwitcherThermostatButtonEntityDescription(
|
SwitcherThermostatButtonEntityDescription(
|
||||||
key="assume_on",
|
key="assume_on",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user