mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
According to the matrix documentation the name
field is required. (#5384)
I am removing this sentence because it contradicts other parts of the documentation.
This commit is contained in:
parent
918c267aff
commit
342ea97f90
@ -79,7 +79,7 @@ commands:
|
||||
|
||||
### {% linkable_title Event Data %}
|
||||
|
||||
If a command is triggered, a `matrix_command` event is fired. The event contains the name of the command in the `name` field. If the command is a word command that has no name set, the `name` field contains the word instead.
|
||||
If a command is triggered, a `matrix_command` event is fired. The event contains the name of the command in the `name` field.
|
||||
|
||||
If the command is a word command, the `data` field contains a list of the command's arguments, i.e., everything that stood behind the word, split at spaces. If the command is an expression command, the `data` field contains the [group dictionary](https://docs.python.org/3.6/library/re.html?highlight=re#re.match.groupdict) of the regular expression that matched the message.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user