diff --git a/homeassistant/components/vicare/config_flow.py b/homeassistant/components/vicare/config_flow.py index c1d4adda62a9..1963563e0f33 100644 --- a/homeassistant/components/vicare/config_flow.py +++ b/homeassistant/components/vicare/config_flow.py @@ -23,6 +23,7 @@ from .const import ( DEFAULT_HEATING_TYPE, DOMAIN, VICARE_NAME, + VIESSMANN_DEVELOPER_PORTAL, HeatingType, ) from .utils import login @@ -70,6 +71,9 @@ class ViCareConfigFlow(ConfigFlow, domain=DOMAIN): return self.async_show_form( step_id="user", + description_placeholders={ + "viessmann_developer_portal": VIESSMANN_DEVELOPER_PORTAL + }, data_schema=USER_SCHEMA, errors=errors, ) @@ -102,6 +106,9 @@ class ViCareConfigFlow(ConfigFlow, domain=DOMAIN): return self.async_show_form( step_id="reauth_confirm", + description_placeholders={ + "viessmann_developer_portal": VIESSMANN_DEVELOPER_PORTAL + }, data_schema=self.add_suggested_values_to_schema( REAUTH_SCHEMA, reauth_entry.data ), diff --git a/homeassistant/components/vicare/const.py b/homeassistant/components/vicare/const.py index c874b9f173c6..c22802075311 100644 --- a/homeassistant/components/vicare/const.py +++ b/homeassistant/components/vicare/const.py @@ -29,6 +29,8 @@ UNSUPPORTED_DEVICES = [ VICARE_NAME = "ViCare" VICARE_TOKEN_FILENAME = "vicare_token.save" +VIESSMANN_DEVELOPER_PORTAL = "https://app.developer.viessmann-climatesolutions.com" + CONF_CIRCUIT = "circuit" CONF_HEATING_TYPE = "heating_type" diff --git a/homeassistant/components/vicare/entity.py b/homeassistant/components/vicare/entity.py index f6a8fc3afafe..fdf250a60c0e 100644 --- a/homeassistant/components/vicare/entity.py +++ b/homeassistant/components/vicare/entity.py @@ -9,7 +9,7 @@ from PyViCare.PyViCareHeatingDevice import ( from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import Entity -from .const import DOMAIN +from .const import DOMAIN, VIESSMANN_DEVELOPER_PORTAL class ViCareEntity(Entity): @@ -49,5 +49,5 @@ class ViCareEntity(Entity): name=model, manufacturer="Viessmann", model=model, - configuration_url="https://developer.viessmann.com/", + configuration_url=VIESSMANN_DEVELOPER_PORTAL, ) diff --git a/homeassistant/components/vicare/strings.json b/homeassistant/components/vicare/strings.json index 99c78e262a65..ee6ef6d1c75a 100644 --- a/homeassistant/components/vicare/strings.json +++ b/homeassistant/components/vicare/strings.json @@ -3,7 +3,7 @@ "flow_title": "{name}", "step": { "user": { - "description": "Set up ViCare integration. To generate client ID go to https://app.developer.viessmann.com", + "description": "Set up ViCare integration.", "data": { "username": "[%key:common::config_flow::data::email%]", "password": "[%key:common::config_flow::data::password%]", @@ -13,7 +13,7 @@ "data_description": { "username": "The email address to log in to your ViCare account.", "password": "The password to log in to your ViCare account.", - "client_id": "The ID of the API client created in the Viessmann developer portal.", + "client_id": "The ID of the API client created in the [Viessmann developer portal]({viessmann_developer_portal}).", "heating_type": "Allows to overrule the device auto detection." } },