mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-19 07:16:29 +00:00
Document async button press method (#1132)
This commit is contained in:
parent
79d3ff5ab2
commit
5d5532db4d
@ -37,4 +37,7 @@ class MyButton(ButtonEntity):
|
|||||||
|
|
||||||
def press(self) -> None:
|
def press(self) -> None:
|
||||||
"""Handle the button press."""
|
"""Handle the button press."""
|
||||||
|
|
||||||
|
async def async_press(self) -> None:
|
||||||
|
"""Handle the button press."""
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user