1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-02 08:26:41 +01:00

Add API key url to step description in TRMNL (#165614)

This commit is contained in:
Joost Lekkerkerker
2026-03-15 23:41:22 +01:00
committed by GitHub
parent 2fe9d1ef86
commit 8db07f3ceb
2 changed files with 5 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ from .const import DOMAIN, LOGGER
STEP_USER_SCHEMA = vol.Schema({vol.Required(CONF_API_KEY): str})
TRMNL_ACCOUNT_URL = "https://trmnl.com/account"
class TRMNLConfigFlow(ConfigFlow, domain=DOMAIN):
"""TRMNL config flow."""
@@ -66,6 +68,7 @@ class TRMNLConfigFlow(ConfigFlow, domain=DOMAIN):
step_id="user",
data_schema=STEP_USER_SCHEMA,
errors=errors,
description_placeholders={"account_url": TRMNL_ACCOUNT_URL},
)
async def async_step_reauth(

View File

@@ -21,7 +21,8 @@
},
"data_description": {
"api_key": "The API key for your TRMNL account."
}
},
"description": "You can find your API key on [your TRMNL account page]({account_url})."
}
}
},