Remove entity description mixin in Switcher Kis (#112945)

This commit is contained in:
Joost Lekkerkerker 2024-03-10 21:06:28 +01:00 committed by GitHub
parent 02ef7ba134
commit b8ae5e2388
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",