Corrected code syntax (#13188)

This commit is contained in:
Agneev Mukherjee 2020-04-27 14:04:32 +05:30 committed by GitHub
parent 49e617df30
commit 855ccbaeb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ which is controllable through REST.
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
switch: switch:
platform: command_line - platform: command_line
switches: switches:
arest_pin_four: arest_pin_four:
command_on: "/usr/bin/curl -X GET http://192.168.1.10/digital/4/1" command_on: "/usr/bin/curl -X GET http://192.168.1.10/digital/4/1"
@ -112,7 +112,7 @@ This switch will shutdown your host immediately, there will be no confirmation.
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
switch: switch:
platform: command_line - platform: command_line
switches: switches:
home_assistant_system_shutdown: home_assistant_system_shutdown:
command_off: "/usr/sbin/poweroff" command_off: "/usr/sbin/poweroff"
@ -126,7 +126,7 @@ This switch will control a local VLC media player
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
switch: switch:
platform: command_line - platform: command_line
switches: switches:
vlc: vlc:
command_on: "cvlc 1.mp3 vlc://quit &" command_on: "cvlc 1.mp3 vlc://quit &"
@ -143,7 +143,7 @@ which checks the current state of motion detection.
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
switch: switch:
platform: command_line - platform: command_line
switches: switches:
foscam_motion: foscam_motion:
command_on: 'curl -k "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&usr=admin&pwd=password"' command_on: 'curl -k "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&usr=admin&pwd=password"'