From c72638907f8404d23f091f2a2fc27862550d2be6 Mon Sep 17 00:00:00 2001 From: Felipe Martins Diel <41558831+felipediel@users.noreply.github.com> Date: Wed, 6 Jan 2021 16:19:03 -0300 Subject: [PATCH] Add documentation for the remote.delete_command service (#763) --- docs/core/entity/remote.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/core/entity/remote.md b/docs/core/entity/remote.md index 0b8dbea3..027a654a 100644 --- a/docs/core/entity/remote.md +++ b/docs/core/entity/remote.md @@ -16,7 +16,8 @@ Properties should always only return information from memory and not do I/O (lik | Constant | Description | -------- | ----------- -| `SUPPORT_LEARN_COMMAND` | Entity allows learning commands from devices. +| `SUPPORT_LEARN_COMMAND` | Entity allows learning commands from devices. +| `SUPPORT_DELETE_COMMAND` | Entity allows deleting commands from devices. ## Methods @@ -45,3 +46,17 @@ class MyRemote(RemoteEntity): async def async_learn_command(self, **kwargs): """Learn a command from a device.""" ``` + +### Delete Command + +Only implement this method if the flag `SUPPORT_DELETE_COMMAND` is set. + +```python +class MyRemote(RemoteEntity): + + def delete_command(self, **kwargs): + """Delete a command from a device.""" + + async def async_delete_command(self, **kwargs): + """Delete a command from a device.""" +```