Document async button press method (#1132)

This commit is contained in:
Franck Nijhof 2021-11-09 17:47:41 +01:00 committed by GitHub
parent 79d3ff5ab2
commit 5d5532db4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,4 +37,7 @@ class MyButton(ButtonEntity):
def press(self) -> None:
"""Handle the button press."""
async def async_press(self) -> None:
"""Handle the button press."""
```