fix error in switch/turn_on example (#1988)

Corrected CURL bash command ( thanks to David):

'$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
       -H "Content-Type: application/json" \
       -d '{"entity_id": "switch.christmas_lights", "state": "on"}' \
       http://localhost:8123/api/services/switch/turn_on'
This commit is contained in:
Jerry Workman 2017-02-07 02:05:11 -05:00 committed by Fabian Affolter
parent 00a1b09386
commit 42be2b1e1b

View File

@ -418,7 +418,7 @@ Sample `curl` command:
```bash ```bash
$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \ $ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{"entity_id": "switch.christmas_lights", "state": "on"}' \ -d '{"entity_id": "switch.christmas_lights"}' \
http://localhost:8123/api/services/switch/turn_on http://localhost:8123/api/services/switch/turn_on
``` ```