mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
Add data description to suez_water config flow (#132466)
* Suez_water: config flow data_descriptions * Rename counter by meter * Use placeholders
This commit is contained in:
parent
555d7f1ea4
commit
ee4db13c2a
@ -82,7 +82,10 @@ class SuezWaterConfigFlow(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={"tout_sur_mon_eau": "Tout sur mon Eau"},
|
||||
)
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
rules:
|
||||
# Bronze
|
||||
config-flow: todo
|
||||
config-flow: done
|
||||
test-before-configure: done
|
||||
unique-config-entry: done
|
||||
config-flow-test-coverage: todo
|
||||
config-flow-test-coverage: done
|
||||
runtime-data:
|
||||
status: todo
|
||||
comment: coordinator is created during setup, should be stored in runtime_data
|
||||
|
@ -5,15 +5,21 @@
|
||||
"data": {
|
||||
"username": "[%key:common::config_flow::data::username%]",
|
||||
"password": "[%key:common::config_flow::data::password%]",
|
||||
"counter_id": "Counter id"
|
||||
}
|
||||
"counter_id": "Meter id"
|
||||
},
|
||||
"data_description": {
|
||||
"username": "Enter your login associated with your {tout_sur_mon_eau} account",
|
||||
"password": "Enter your password associated with your {tout_sur_mon_eau} account",
|
||||
"counter_id": "Enter your meter id (ex: 12345678). Should be found automatically during setup, if not see integration documentation for more information"
|
||||
},
|
||||
"description": "Connect your suez water {tout_sur_mon_eau} account to retrieve your water consumption"
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
||||
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]",
|
||||
"unknown": "[%key:common::config_flow::error::unknown%]",
|
||||
"counter_not_found": "Could not find counter id automatically"
|
||||
"counter_not_found": "Could not find meter id automatically"
|
||||
},
|
||||
"abort": {
|
||||
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
|
||||
|
Loading…
x
Reference in New Issue
Block a user