mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +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
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
|
switch:
|
||||||
- platform: hook
|
- platform: hook
|
||||||
username: <email address>
|
username: <email address>
|
||||||
password: !secret hook
|
password: !secret hook
|
||||||
@ -31,6 +32,7 @@ Configure with either your username/password or your API token for the official
|
|||||||
Or
|
Or
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
|
switch:
|
||||||
- platform: hook
|
- platform: hook
|
||||||
token: <your API token>
|
token: <your API token>
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user