Update OpenWeatherMap config step description to clarify API key documentation (#146843)

This commit is contained in:
wittypluck 2025-07-28 14:40:00 +02:00 committed by GitHub
parent db1e6a0d98
commit bf05c23414
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -69,6 +69,10 @@ class OpenWeatherMapConfigFlow(ConfigFlow, domain=DOMAIN):
title=user_input[CONF_NAME], data=data, options=options
)
description_placeholders["doc_url"] = (
"https://www.home-assistant.io/integrations/openweathermap/"
)
schema = vol.Schema(
{
vol.Required(CONF_API_KEY): str,

View File

@ -17,7 +17,7 @@
"mode": "[%key:common::config_flow::data::mode%]",
"name": "[%key:common::config_flow::data::name%]"
},
"description": "To generate API key go to https://openweathermap.org/appid"
"description": "To generate an API key, please refer to the [integration documentation]({doc_url})"
}
}
},