1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 17:49:37 +01:00

Move translatable URL out of strings.json for compit (#154771)

This commit is contained in:
Jan Bouwhuis
2025-10-18 19:54:27 +02:00
committed by GitHub
parent 3b09adb360
commit e95c0ef3a8
3 changed files with 8 additions and 2 deletions
@@ -78,7 +78,10 @@ class CompitConfigFlow(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={"compit_url": "https://inext.compit.pl/"},
)
async def async_step_reauth(self, data: Mapping[str, Any]) -> ConfigFlowResult:
+1 -1
View File
@@ -2,7 +2,7 @@
"config": {
"step": {
"user": {
"description": "Please enter your https://inext.compit.pl/ credentials.",
"description": "Please enter your {compit_url} credentials.",
"title": "Connect to Compit iNext",
"data": {
"email": "[%key:common::config_flow::data::email%]",
@@ -27,6 +27,9 @@ async def test_async_step_user_success(
)
assert result["type"] is FlowResultType.FORM
assert result["step_id"] == config_entries.SOURCE_USER
assert result["description_placeholders"] == {
"compit_url": "https://inext.compit.pl/"
}
result = await hass.config_entries.flow.async_configure(
result["flow_id"], CONFIG_INPUT