Updated code syntax (#13198)

This commit is contained in:
Agneev Mukherjee 2020-04-29 00:13:59 +05:30 committed by GitHub
parent 855ccbaeb4
commit bce66a0b97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,16 +16,16 @@ To enable this switch, add the following lines to your `configuration.yaml` file
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
switch: switch:
platform: telnet - platform: telnet
switches: switches:
projector: projector:
resource: THE_IP_ADDRESS resource: THE_IP_ADDRESS
port: 4002 port: 4002
command_on: "PWR ON" command_on: "PWR ON"
command_off: "PWR OFF" command_off: "PWR OFF"
command_state: "PWR?" command_state: "PWR?"
value_template: '{{ value == "PWR=01" }}' value_template: '{{ value == "PWR=01" }}'
timeout: 0.9 timeout: 0.9
``` ```
{% endraw %} {% endraw %}