From 1348cdbed46b6f37d56d2d9c09787f7453c9db0f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 1 Nov 2017 11:44:32 +0100 Subject: [PATCH] Add default --- source/developers/documentation/create_page.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/developers/documentation/create_page.markdown b/source/developers/documentation/create_page.markdown index 56860767516..8002a1f623f 100644 --- a/source/developers/documentation/create_page.markdown +++ b/source/developers/documentation/create_page.markdown @@ -60,11 +60,14 @@ The **Configuration Variables** section must use the {% raw %}`{% configuration name: description: Name to use in the frontend. required: false + default: The default name to use in the frontend. type: string {% endconfiguration %} {% endraw %} ``` +Available keys: + - **`description:`**: That the variable is about. - **`required:`**: If the variable is required. ```text @@ -75,6 +78,7 @@ required: exclusive #=> Exclusive 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). +- **`default:`**: The default value for the variable. ### {% linkable_title Embedding Code %}