mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Extent sample
This commit is contained in:
parent
70167e3d74
commit
f511bea3e2
@ -49,22 +49,31 @@ Every platform page should contain a configuration sample. This sample must cont
|
|||||||
|
|
||||||
The **Configuration Variables** section must use the {% raw %}`{% configuration %} ... {% endconfiguration %}`{% endraw %} tag.
|
The **Configuration Variables** section must use the {% raw %}`{% configuration %} ... {% endconfiguration %}`{% endraw %} tag.
|
||||||
|
|
||||||
|
|
||||||
```text
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
|
```text
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
api_key:
|
api_key:
|
||||||
description: The API key to access the service.
|
description: The API key to access the service.
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
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.
|
default: The default name to use in the frontend.
|
||||||
type: string
|
type: string
|
||||||
|
monitored_conditions:
|
||||||
|
description: Conditions to display in the frontend.
|
||||||
|
required: true
|
||||||
|
type: list
|
||||||
|
keys:
|
||||||
|
weather:
|
||||||
|
description: A human-readable text summary.
|
||||||
|
temperature:
|
||||||
|
description: The current temperature.
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
{% endraw %}
|
|
||||||
```
|
```
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
Available keys:
|
Available keys:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user