mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-10 02:46:53 +00:00
Update the YAML example to a more "generic" example (#4371)
The original YAML platform example was written to only support one platform within a switch component.
This commit is contained in:
parent
a3364e6608
commit
94c267623f
@ -21,11 +21,11 @@ To enable it, add the following lines to your `configuration.yaml`:
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
switch:
|
switch:
|
||||||
platform: command_line
|
- platform: command_line
|
||||||
switches:
|
switches:
|
||||||
kitchen_light:
|
kitchen_light:
|
||||||
command_on: switch_command on kitchen
|
command_on: switch_command on kitchen
|
||||||
command_off: switch_command off kitchen
|
command_off: switch_command off kitchen
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user