Format values as code blocks (#16242)

This commit is contained in:
Dale Higgs 2021-01-21 05:41:14 -06:00 committed by GitHub
parent e2ee02796d
commit b600138c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,8 +10,8 @@ ha_domain: template
--- ---
The `template` platform creates fans that combine integrations and provides the The `template` platform creates fans that combine integrations and provides the
ability to run scripts or invoke services for each of the turn_on, turn_off, set_speed, ability to run scripts or invoke services for each of the `turn_on`, `turn_off`, `set_speed`,
set_oscillating, and set_direction commands of a fan. `set_oscillating`, and `set_direction` commands of a fan.
To enable Template Fans in your installation, add the following to your To enable Template Fans in your installation, add the following to your
`configuration.yaml` file: `configuration.yaml` file:
@ -68,7 +68,7 @@ fan:
required: false required: false
type: string type: string
value_template: value_template:
description: "Defines a template to get the state of the fan. Valid value: 'on'/'off'" description: "Defines a template to get the state of the fan. Valid values: `on`, `off`"
required: true required: true
type: template type: template
speed_template: speed_template:
@ -76,11 +76,11 @@ fan:
required: false required: false
type: template type: template
oscillating_template: oscillating_template:
description: "Defines a template to get the osc state of the fan. Valid value: true/false" description: "Defines a template to get the osc state of the fan. Valid values: `true`, `false`"
required: false required: false
type: template type: template
direction_template: direction_template:
description: "Defines a template to get the direction of the fan. Valid value: 'forward'/'reverse'" description: "Defines a template to get the direction of the fan. Valid values: `forward`, `reverse`"
required: false required: false
type: template type: template
availability_template: availability_template: