Fix supervisor ping URL (#990)

* Fix supervisor ping URL

In the current version I had to ping `http://<host>/supervisor/ping`, instead of `http://<host>/ping` as implied by the docs.

```
$ curl -sSL -H 'Authorization: Bearer <TOKEN>' 'http://homeassistant.local/ping'
404: Not Found

$ curl -sSL -H 'Authorization: Bearer <TOKEN>' 'http://homeassistant.local/supervisor/ping'
{"result": "ok", "data": {}}
```

* Use 'supervisor' as host name

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Chris van Marle 2021-06-30 09:48:17 +02:00 committed by GitHub
parent 8b219a852c
commit c70f7ec86b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ curl -sSL -H "Authorization: Bearer $SUPERVISOR_TOKEN" http://supervisor/network
## Ping the supervisor
```bash
curl -sSL http://supervisor/ping
curl -sSL http://supervisor/supervisor/ping
```
**response:**
@ -44,4 +44,4 @@ curl -sSL http://supervisor/ping
"result": "ok",
"data": {}
}
```
```