Added switch: to configuration.yaml example (#4246)

Added `switch:` to configuration.yaml example to help clarify what actually needs to be added to a configuration.yaml file in order for this platform to work- assuming this is the only switch in the configuration, or if you are adding it as a list item to other switches. It cannot be copied/pasted directly as it was.
This commit is contained in:
Brent Saltzman 2017-12-19 11:21:44 -06:00 committed by Franck Nijhof
parent b73495bea5
commit e354ec42e5

View File

@ -24,6 +24,7 @@ Configure with either your username/password or your API token for the official
```yaml
# Example configuration.yaml entry
switch:
- platform: hook
username: <email address>
password: !secret hook
@ -31,6 +32,7 @@ Configure with either your username/password or your API token for the official
Or
```yaml
# Example configuration.yaml entry
switch:
- platform: hook
token: <your API token>
```