Corrected code block formatting for yaml in step 8 (#1678)

This commit is contained in:
chris-thorn 2016-12-30 19:39:56 +00:00 committed by Fabian Affolter
parent f6e0ede2ff
commit 549a1df858
No known key found for this signature in database
GPG Key ID: E23CD2DD36A4397F

View File

@ -51,7 +51,7 @@ from Home Assistant running on another Linux computer (the **server**).
6. On the **target**, we need to let the hass user execute the program needed to suspend/shut down the target computer. I'm using `pm-suspend`, use `poweroff` to turn off the computer. First, get the full path: `which pm-suspend`. On my system, this is `/usr/sbin/pm-suspend`.
7. On the **target**, using an account with sudo access (typically your main account), `sudo visudo`. Add this line last in the file: `hass ALL=NOPASSWD:/usr/sbin/pm-suspend`, where you replace `hass` with the name of your user on the target, if different, and `/usr/sbin/pm-suspend` with the command of your choice, if different.
8. On the **server**, add the following to your configuration, replacing TARGET with the target's name:
``` yaml
```yaml
switch:
- platform: wake_on_lan
name: "TARGET"