mirror of
https://github.com/home-assistant/core.git
synced 2025-12-26 22:18:40 +00:00
Move igloohome API access URL into constant placeholders (#154430)
This commit is contained in:
@@ -13,7 +13,7 @@ from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
|
||||
from homeassistant.const import CONF_CLIENT_ID, CONF_CLIENT_SECRET
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import DOMAIN
|
||||
from .const import API_ACCESS_URL, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@@ -57,5 +57,8 @@ class IgloohomeConfigFlow(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={"api_access_url": API_ACCESS_URL},
|
||||
)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"""Constants for the igloohome integration."""
|
||||
|
||||
DOMAIN = "igloohome"
|
||||
API_ACCESS_URL = "https://access.igloocompany.co/api-access"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"config": {
|
||||
"step": {
|
||||
"user": {
|
||||
"description": "Copy & paste your [API access credentials](https://access.igloocompany.co/api-access) to give Home Assistant access to your account.",
|
||||
"description": "Copy & paste your [API access credentials]({api_access_url}) to give Home Assistant access to your account.",
|
||||
"data": {
|
||||
"client_id": "Client ID",
|
||||
"client_secret": "Client secret"
|
||||
|
||||
Reference in New Issue
Block a user