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:
jb101010-2 2024-12-11 15:52:43 +01:00 committed by GitHub
parent 555d7f1ea4
commit ee4db13c2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 6 deletions

View File

@ -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"},
)

View File

@ -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

View File

@ -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%]"