Add data_description to Bring! integration (#137513)

This commit is contained in:
Manu 2025-02-06 10:10:47 +01:00 committed by GitHub
parent 4deffb233d
commit 9ca8af0a00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 18 additions and 2 deletions

View File

@ -68,7 +68,13 @@ class BringConfigFlow(ConfigFlow, domain=DOMAIN):
)
return self.async_show_form(
step_id="user", data_schema=STEP_USER_DATA_SCHEMA, errors=errors
step_id="user",
data_schema=STEP_USER_DATA_SCHEMA,
errors=errors,
description_placeholders={
"google_play": "https://play.google.com/store/apps/details?id=ch.publisheria.bring",
"app_store": "https://itunes.apple.com/app/apple-store/id580669177",
},
)
async def async_step_reauth(

View File

@ -7,7 +7,7 @@ rules:
brands: done
common-modules: done
config-flow-test-coverage: done
config-flow: todo
config-flow: done
dependency-transparency: done
docs-actions: done
docs-high-level-description: todo

View File

@ -5,9 +5,15 @@
"config": {
"step": {
"user": {
"title": "Bring! Grocery shopping list",
"description": "Connect your Bring! account to sync your shopping lists with Home Assistant.\n\nDon't have a Bring! account? Download the app on [Google Play for Android]({google_play}) or the [App Store for iOS]({app_store}) to sign up.",
"data": {
"email": "[%key:common::config_flow::data::email%]",
"password": "[%key:common::config_flow::data::password%]"
},
"data_description": {
"email": "The email address associated with your Bring! account.",
"password": "The password to login to your Bring! account."
}
},
"reauth_confirm": {
@ -16,6 +22,10 @@
"data": {
"email": "[%key:common::config_flow::data::email%]",
"password": "[%key:common::config_flow::data::password%]"
},
"data_description": {
"email": "[%key:component::bring::config::step::user::data_description::email%]",
"password": "[%key:component::bring::config::step::user::data_description::email%]"
}
}
},