mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +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
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class SwitcherThermostatButtonDescriptionMixin:
|
||||
"""Mixin to describe a Switcher Thermostat Button entity."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class SwitcherThermostatButtonEntityDescription(ButtonEntityDescription):
|
||||
"""Class to describe a Switcher Thermostat Button entity."""
|
||||
|
||||
press_fn: Callable[[SwitcherType2Api, SwitcherBreezeRemote], SwitcherBaseResponse]
|
||||
supported: Callable[[SwitcherBreezeRemote], bool]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class SwitcherThermostatButtonEntityDescription(
|
||||
ButtonEntityDescription, SwitcherThermostatButtonDescriptionMixin
|
||||
):
|
||||
"""Class to describe a Switcher Thermostat Button entity."""
|
||||
|
||||
|
||||
THERMOSTAT_BUTTONS = [
|
||||
SwitcherThermostatButtonEntityDescription(
|
||||
key="assume_on",
|
||||
|
Loading…
x
Reference in New Issue
Block a user