From 5d5532db4d2432deead0f2774228e0d00caf964c Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 9 Nov 2021 17:47:41 +0100 Subject: [PATCH] Document async button press method (#1132) --- docs/core/entity/button.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/core/entity/button.md b/docs/core/entity/button.md index 7dc46943..c921479c 100644 --- a/docs/core/entity/button.md +++ b/docs/core/entity/button.md @@ -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.""" ```