From c70f7ec86bff51cce0112506760d73079eb68866 Mon Sep 17 00:00:00 2001 From: Chris van Marle Date: Wed, 30 Jun 2021 09:48:17 +0200 Subject: [PATCH] Fix supervisor ping URL (#990) * Fix supervisor ping URL In the current version I had to ping `http:///supervisor/ping`, instead of `http:///ping` as implied by the docs. ``` $ curl -sSL -H 'Authorization: Bearer ' 'http://homeassistant.local/ping' 404: Not Found $ curl -sSL -H 'Authorization: Bearer ' 'http://homeassistant.local/supervisor/ping' {"result": "ok", "data": {}} ``` * Use 'supervisor' as host name Co-authored-by: Franck Nijhof Co-authored-by: Franck Nijhof --- docs/api/supervisor/examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/supervisor/examples.md b/docs/api/supervisor/examples.md index 21797c37..270aae9c 100644 --- a/docs/api/supervisor/examples.md +++ b/docs/api/supervisor/examples.md @@ -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": {} } -``` \ No newline at end of file +```