Skip to content

Commit 38d0299

Browse files
authored
Remove URL from ViCare strings.json (home-assistant#154243)
1 parent 8dba1ed commit 38d0299

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

homeassistant/components/vicare/config_flow.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
DEFAULT_HEATING_TYPE,
2424
DOMAIN,
2525
VICARE_NAME,
26+
VIESSMANN_DEVELOPER_PORTAL,
2627
HeatingType,
2728
)
2829
from .utils import login
@@ -70,6 +71,9 @@ async def async_step_user(
7071

7172
return self.async_show_form(
7273
step_id="user",
74+
description_placeholders={
75+
"viessmann_developer_portal": VIESSMANN_DEVELOPER_PORTAL
76+
},
7377
data_schema=USER_SCHEMA,
7478
errors=errors,
7579
)
@@ -102,6 +106,9 @@ async def async_step_reauth_confirm(
102106

103107
return self.async_show_form(
104108
step_id="reauth_confirm",
109+
description_placeholders={
110+
"viessmann_developer_portal": VIESSMANN_DEVELOPER_PORTAL
111+
},
105112
data_schema=self.add_suggested_values_to_schema(
106113
REAUTH_SCHEMA, reauth_entry.data
107114
),

homeassistant/components/vicare/const.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
VICARE_NAME = "ViCare"
3030
VICARE_TOKEN_FILENAME = "vicare_token.save"
3131

32+
VIESSMANN_DEVELOPER_PORTAL = "https://app.developer.viessmann-climatesolutions.com"
33+
3234
CONF_CIRCUIT = "circuit"
3335
CONF_HEATING_TYPE = "heating_type"
3436

homeassistant/components/vicare/entity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from homeassistant.helpers.device_registry import DeviceInfo
1010
from homeassistant.helpers.entity import Entity
1111

12-
from .const import DOMAIN
12+
from .const import DOMAIN, VIESSMANN_DEVELOPER_PORTAL
1313

1414

1515
class ViCareEntity(Entity):
@@ -49,5 +49,5 @@ def __init__(
4949
name=model,
5050
manufacturer="Viessmann",
5151
model=model,
52-
configuration_url="https://developer.viessmann.com/",
52+
configuration_url=VIESSMANN_DEVELOPER_PORTAL,
5353
)

homeassistant/components/vicare/strings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"flow_title": "{name}",
44
"step": {
55
"user": {
6-
"description": "Set up ViCare integration. To generate client ID go to https://app.developer.viessmann.com",
6+
"description": "Set up ViCare integration.",
77
"data": {
88
"username": "[%key:common::config_flow::data::email%]",
99
"password": "[%key:common::config_flow::data::password%]",
@@ -13,7 +13,7 @@
1313
"data_description": {
1414
"username": "The email address to log in to your ViCare account.",
1515
"password": "The password to log in to your ViCare account.",
16-
"client_id": "The ID of the API client created in the Viessmann developer portal.",
16+
"client_id": "The ID of the API client created in the [Viessmann developer portal]({viessmann_developer_portal}).",
1717
"heating_type": "Allows to overrule the device auto detection."
1818
}
1919
},

0 commit comments

Comments
 (0)