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:
committed by
GitHub
parent
2fe9d1ef86
commit
8db07f3ceb
@@ -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(
|
||||
|
||||
@@ -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})."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user