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.""" +```