From f525fba1147c65a8f590b5687ad0fe593844176c Mon Sep 17 00:00:00 2001 From: Mark Breen Date: Sat, 20 Nov 2021 00:21:24 +0000 Subject: [PATCH 1/2] advise on use of an access token rather than API_SECRET Proposed change to advise on use of an access token rather than API_SECRET, Provide link to nightscout guide. --- homeassistant/components/nightscout/strings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/nightscout/strings.json b/homeassistant/components/nightscout/strings.json index bb1c9ae0bf634..da6b7cb6a58bb 100644 --- a/homeassistant/components/nightscout/strings.json +++ b/homeassistant/components/nightscout/strings.json @@ -3,7 +3,7 @@ "step": { "user": { "title": "Enter your Nightscout server information.", - "description": "- URL: the address of your nightscout instance. I.e.: https://myhomeassistant.duckdns.org:5423\n- API Key (optional): Only use if your instance is protected (auth_default_roles != readable).", + "description": "- URL: the address of your nightscout instance. e.g.: https://myhomeassistant.duckdns.org:5423\n- API Key/Access Token (optional): Only use if your instance is protected (auth_default_roles != readable).\nIt is recommended NOT to use your API_SECRET but instead generate an access token. See https://nightscout.github.io/nightscout/security/#create-authentication-tokens-for-users for details.\nA 'subject' (person/device) with the 'readable' permission is sufficient for this integration.", "data": { "url": "[%key:common::config_flow::data::url%]", "api_key": "[%key:common::config_flow::data::api_key%]" From 7303e100197e30f622a13be50399000ab531f799 Mon Sep 17 00:00:00 2001 From: Mark Breen Date: Sat, 20 Nov 2021 00:28:07 +0000 Subject: [PATCH 2/2] advise on use of an access token rather than API_SECRET Proposed change to advise on use of an access token rather than API_SECRET, Provide link to nightscout guide. --- homeassistant/components/nightscout/translations/en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/nightscout/translations/en.json b/homeassistant/components/nightscout/translations/en.json index f66158b9993ba..cc1a90ed0dd02 100644 --- a/homeassistant/components/nightscout/translations/en.json +++ b/homeassistant/components/nightscout/translations/en.json @@ -15,7 +15,7 @@ "api_key": "API Key", "url": "URL" }, - "description": "- URL: the address of your nightscout instance. I.e.: https://myhomeassistant.duckdns.org:5423\n- API Key (optional): Only use if your instance is protected (auth_default_roles != readable).", + "description": "- URL: the address of your nightscout instance. e.g.: https://myhomeassistant.duckdns.org:5423\n- API Key/Access Token (optional): Only use if your instance is protected (auth_default_roles != readable).\nIt is recommended NOT to use your API_SECRET but instead generate an access token. See https://nightscout.github.io/nightscout/security/#create-authentication-tokens-for-users for details.\nA 'subject' (person/device) with the 'readable' permission is sufficient for this integration.", "title": "Enter your Nightscout server information." } }