mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-25 17:17:54 +01:00
fix LINT errors
This commit is contained in:
parent
5c443c0132
commit
20c4e4960a
@ -179,7 +179,7 @@ by their value. The syntax for a substitution is based on bash and is case-sensi
|
||||
Two substitution passes are performed allowing compound replacements.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
|
||||
substitutions:
|
||||
foo: yellow
|
||||
bar_yellow_value: !secret yellow_secret
|
||||
@ -235,7 +235,7 @@ Substitute !include variables
|
||||
ESPHome's ``!include`` accepts a list of variables that can be substituted within the included file.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: button1
|
||||
@ -254,16 +254,16 @@ ESPHome's ``!include`` accepts a list of variables that can be substituted withi
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
- timing: !include click-single.yaml
|
||||
then:
|
||||
- mqtt.publish:
|
||||
topic: ${device_name}/button${id}/status
|
||||
payload: single
|
||||
- timing: !include click-double.yaml
|
||||
then:
|
||||
- mqtt.publish:
|
||||
topic: ${device_name}/button${id}/status
|
||||
payload: double
|
||||
- timing: !include click-single.yaml
|
||||
then:
|
||||
- mqtt.publish:
|
||||
topic: ${device_name}/button${id}/status
|
||||
payload: single
|
||||
- timing: !include click-double.yaml
|
||||
then:
|
||||
- mqtt.publish:
|
||||
topic: ${device_name}/button${id}/status
|
||||
payload: double
|
||||
|
||||
.. _command-line-substitutions:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user