mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 10:17:51 +00:00
Remove entity description mixin in Bond (#112393)
This commit is contained in:
parent
cb397cecb1
commit
b9ef27799b
@ -21,23 +21,15 @@ from .utils import BondDevice, BondHub
|
|||||||
STEP_SIZE = 10
|
STEP_SIZE = 10
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class BondButtonEntityDescriptionMixin:
|
class BondButtonEntityDescription(ButtonEntityDescription):
|
||||||
"""Mixin to describe a Bond Button entity."""
|
|
||||||
|
|
||||||
mutually_exclusive: Action | None
|
|
||||||
argument: int | None
|
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class BondButtonEntityDescription(
|
|
||||||
ButtonEntityDescription, BondButtonEntityDescriptionMixin
|
|
||||||
):
|
|
||||||
"""Class to describe a Bond Button entity."""
|
"""Class to describe a Bond Button entity."""
|
||||||
|
|
||||||
# BondEntity does not support UNDEFINED,
|
# BondEntity does not support UNDEFINED,
|
||||||
# restrict the type to str | None
|
# restrict the type to str | None
|
||||||
name: str | None = None
|
name: str | None = None
|
||||||
|
mutually_exclusive: Action | None
|
||||||
|
argument: int | None
|
||||||
|
|
||||||
|
|
||||||
STOP_BUTTON = BondButtonEntityDescription(
|
STOP_BUTTON = BondButtonEntityDescription(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user