mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +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__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class FritzButtonDescriptionMixin:
|
class FritzButtonDescription(ButtonEntityDescription):
|
||||||
"""Mixin to describe a Button entity."""
|
"""Class to describe a Button entity."""
|
||||||
|
|
||||||
press_action: Callable
|
press_action: Callable
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class FritzButtonDescription(ButtonEntityDescription, FritzButtonDescriptionMixin):
|
|
||||||
"""Class to describe a Button entity."""
|
|
||||||
|
|
||||||
|
|
||||||
BUTTONS: Final = [
|
BUTTONS: Final = [
|
||||||
FritzButtonDescription(
|
FritzButtonDescription(
|
||||||
key="firmware_update",
|
key="firmware_update",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user