mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 08:46:51 +00:00
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:
parent
b73495bea5
commit
e354ec42e5
@ -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>
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user