Remove entity description mixin in Bond (#112393)
This commit is contained in:
parent
cb397cecb1
commit
b9ef27799b
1 changed files with 4 additions and 12 deletions
|
@ -21,23 +21,15 @@ from .utils import BondDevice, BondHub
|
|||
STEP_SIZE = 10
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class BondButtonEntityDescriptionMixin:
|
||||
"""Mixin to describe a Bond Button entity."""
|
||||
|
||||
mutually_exclusive: Action | None
|
||||
argument: int | None
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class BondButtonEntityDescription(
|
||||
ButtonEntityDescription, BondButtonEntityDescriptionMixin
|
||||
):
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class BondButtonEntityDescription(ButtonEntityDescription):
|
||||
"""Class to describe a Bond Button entity."""
|
||||
|
||||
# BondEntity does not support UNDEFINED,
|
||||
# restrict the type to str | None
|
||||
name: str | None = None
|
||||
mutually_exclusive: Action | None
|
||||
argument: int | None
|
||||
|
||||
|
||||
STOP_BUTTON = BondButtonEntityDescription(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue