mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 22:06:50 +00:00
Add default
This commit is contained in:
parent
68ee2ccb70
commit
1348cdbed4
@ -60,11 +60,14 @@ The **Configuration Variables** section must use the {% raw %}`{% configuration
|
|||||||
name:
|
name:
|
||||||
description: Name to use in the frontend.
|
description: Name to use in the frontend.
|
||||||
required: false
|
required: false
|
||||||
|
default: The default name to use in the frontend.
|
||||||
type: string
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Available keys:
|
||||||
|
|
||||||
- **`description:`**: That the variable is about.
|
- **`description:`**: That the variable is about.
|
||||||
- **`required:`**: If the variable is required.
|
- **`required:`**: If the variable is required.
|
||||||
```text
|
```text
|
||||||
@ -75,6 +78,7 @@ required: exclusive #=> Exclusive
|
|||||||
required: any string here #=> Any string here
|
required: any string here #=> Any string here
|
||||||
```
|
```
|
||||||
- **`type:`**: The type of the variable. Allowed entries: `string`, `int` or `map`. For multiple possibilities use `[string, int]`. If you use `map` then you need to define `keys:` (see the [`template` sensor](/components/sensor.template/) for an example).
|
- **`type:`**: The type of the variable. Allowed entries: `string`, `int` or `map`. For multiple possibilities use `[string, int]`. If you use `map` then you need to define `keys:` (see the [`template` sensor](/components/sensor.template/) for an example).
|
||||||
|
- **`default:`**: The default value for the variable.
|
||||||
|
|
||||||
### {% linkable_title Embedding Code %}
|
### {% linkable_title Embedding Code %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user