Explain Withings setup (#146216)

This commit is contained in:
Joost Lekkerkerker 2025-06-10 14:10:35 +02:00 committed by GitHub
parent 279539265b
commit bf776d33b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View File

@ -75,3 +75,11 @@ class WithingsLocalOAuth2Implementation(AuthImplementation):
}
)
return {**token, **new_token}
async def async_get_description_placeholders(hass: HomeAssistant) -> dict[str, str]:
"""Return description placeholders for the credentials dialog."""
return {
"developer_dashboard_url": "https://developer.withings.com/dashboard/welcome",
"redirect_url": "https://my.home-assistant.io/redirect/oauth",
}

View File

@ -1,4 +1,7 @@
{
"application_credentials": {
"description": "To be able to login to Withings we require a client ID and secret. To acquire them, please follow the following steps.\n\n1. Go to the [Withings Developer Dashboard]({developer_dashboard_url}) and be sure to select the Public Cloud.\n1. Log in with your Withings account.\n1. Select **Create an application**.\n1. Select the checkbox for **Public API integration**.\n1. Select **Development** as target environment.\n1. Fill in an application name and description of your choice.\n1. Fill in `{redirect_url}` for the registered URL. Make sure that you don't press the button to test it.\n1. Fill in the client ID and secret that are now available."
},
"config": {
"step": {
"pick_implementation": {
@ -9,7 +12,7 @@
"description": "The Withings integration needs to re-authenticate your account"
},
"oauth_discovery": {
"description": "Home Assistant has found a Withings device on your network. Press **Submit** to continue setting up Withings."
"description": "Home Assistant has found a Withings device on your network. Be aware that the setup of Withings is more complicated than many other integrations. Press **Submit** to continue setting up Withings."
}
},
"error": {