mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Remove entity description mixin in AVM Fritz!Tools (#112767)
This commit is contained in:
parent
2b2f7d1193
commit
378806f1fa
@ -24,18 +24,13 @@ from .const import DOMAIN
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class FritzButtonDescriptionMixin:
|
||||
"""Mixin to describe a Button entity."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class FritzButtonDescription(ButtonEntityDescription):
|
||||
"""Class to describe a Button entity."""
|
||||
|
||||
press_action: Callable
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class FritzButtonDescription(ButtonEntityDescription, FritzButtonDescriptionMixin):
|
||||
"""Class to describe a Button entity."""
|
||||
|
||||
|
||||
BUTTONS: Final = [
|
||||
FritzButtonDescription(
|
||||
key="firmware_update",
|
||||
|
Loading…
x
Reference in New Issue
Block a user