mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Update addon_config.markdown
This commit is contained in:
parent
4d7eabcc82
commit
826c207c79
@ -131,7 +131,7 @@ The config for an add-on is stored in `config.json`.
|
|||||||
|
|
||||||
### {% linkable_title Options / Schema %}
|
### {% linkable_title Options / Schema %}
|
||||||
|
|
||||||
The `options` dictionary contains all available options and their default value. Set the default value to `null` if the value is required to be given by the user before the add-on can start. Only non-nested arrays and dictionaries are supported.
|
The `options` dictionary contains all available options and their default value. Set the default value to `null` if the value is required to be given by the user before the add-on can start. Only nested arrays and dictionaries are supported with a deep of two size. If you want make a option optional, put `?` to the end of data type.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -158,7 +158,8 @@ The `schema` looks like `options` but describes how we should validate the user
|
|||||||
"random": ["match(^\w*$)"],
|
"random": ["match(^\w*$)"],
|
||||||
"link": "url",
|
"link": "url",
|
||||||
"size": "int(5,20)",
|
"size": "int(5,20)",
|
||||||
"count": "float"
|
"count": "float",
|
||||||
|
"not_need": "str?"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user