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
# Example configuration.yaml entry
switch:
platform: telnet
switches:
projector:
resource: THE_IP_ADDRESS
port: 4002
command_on: "PWR ON"
command_off: "PWR OFF"
command_state: "PWR?"
value_template: '{{ value == "PWR=01" }}'
timeout: 0.9
- platform: telnet
switches:
projector:
resource: THE_IP_ADDRESS
port: 4002
command_on: "PWR ON"
command_off: "PWR OFF"
command_state: "PWR?"
value_template: '{{ value == "PWR=01" }}'
timeout: 0.9
```
{% endraw %}