From 4bbf81ef735254f9105a1dfb2a277e67c8de7362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sat, 11 Sep 2021 20:39:25 +0200 Subject: [PATCH] Remove refrences to /api/discovery_info (#1054) --- docs/add-ons/communication.md | 2 +- docs/api/rest.md | 22 ---------------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/docs/add-ons/communication.md b/docs/add-ons/communication.md index bb94d837..4827a410 100644 --- a/docs/add-ons/communication.md +++ b/docs/add-ons/communication.md @@ -17,7 +17,7 @@ Use `supervisor` for communication with the internal API. An add-on can talk to the [Home Assistant Core API][core-api] using the internal proxy. This makes it very easy to communicate with the API without knowing the password, port or any other information about the Home Assistant instance. Using this URL: `http://supervisor/core/api` ensures that internal communication is redirected to the right place. The next step is to add `homeassistant_api: true` to the `config.json` file and read the environment variable `SUPERVISOR_TOKEN`. Use this as the Home Assistant Core [bearer token](/auth_api.md#making-authenticated-requests) when making requests. -For example `curl -X GET -H "Authorization: Bearer ${SUPERVISOR_TOKEN}" -H "Content-Type: application/json" http://supervisor/core/api/discovery_info` +For example `curl -X GET -H "Authorization: Bearer ${SUPERVISOR_TOKEN}" -H "Content-Type: application/json" http://supervisor/core/api/config` There is also a proxy for the [Home Assistant Websocket API][core-websocket] that works like the API proxy above and requires `SUPERVISOR_TOKEN` as the password. Use this URL: `http://supervisor/core/websocket`. diff --git a/docs/api/rest.md b/docs/api/rest.md index 01e04637..bf7beb0c 100644 --- a/docs/api/rest.md +++ b/docs/api/rest.md @@ -134,28 +134,6 @@ curl -X GET -H "Authorization: Bearer ABCDEFGH" \ - - -Returns basic information about the Home Assistant instance as JSON. - -```json -{ - "base_url": "http://192.168.0.2:8123", - "location_name": "Home", - "requires_api_password": true, - "version": "0.56.2" -} -``` - -Sample `curl` command: - -```shell -curl -X GET -H "Content-Type: application/json" \ - http://localhost:8123/api/discovery_info -``` - - - Returns an array of event objects. Each event object contains event name and listener count.