Skip to content

Commit 4586952

Browse files
DannyS95frenck
authored andcommitted
Move igloohome API access URL into constant placeholders (home-assistant#154430)
1 parent a753926 commit 4586952

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

homeassistant/components/igloohome/config_flow.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from homeassistant.const import CONF_CLIENT_ID, CONF_CLIENT_SECRET
1414
from homeassistant.helpers.aiohttp_client import async_get_clientsession
1515

16-
from .const import DOMAIN
16+
from .const import API_ACCESS_URL, DOMAIN
1717

1818
_LOGGER = logging.getLogger(__name__)
1919

@@ -57,5 +57,8 @@ async def async_step_user(
5757
)
5858

5959
return self.async_show_form(
60-
step_id="user", data_schema=STEP_USER_DATA_SCHEMA, errors=errors
60+
step_id="user",
61+
data_schema=STEP_USER_DATA_SCHEMA,
62+
errors=errors,
63+
description_placeholders={"api_access_url": API_ACCESS_URL},
6164
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
"""Constants for the igloohome integration."""
22

33
DOMAIN = "igloohome"
4+
API_ACCESS_URL = "https://access.igloocompany.co/api-access"

homeassistant/components/igloohome/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"config": {
33
"step": {
44
"user": {
5-
"description": "Copy & paste your [API access credentials](https://access.igloocompany.co/api-access) to give Home Assistant access to your account.",
5+
"description": "Copy & paste your [API access credentials]({api_access_url}) to give Home Assistant access to your account.",
66
"data": {
77
"client_id": "Client ID",
88
"client_secret": "Client secret"

0 commit comments

Comments
 (0)