File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed
homeassistant/components/vicare Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 2323 DEFAULT_HEATING_TYPE ,
2424 DOMAIN ,
2525 VICARE_NAME ,
26+ VIESSMANN_DEVELOPER_PORTAL ,
2627 HeatingType ,
2728)
2829from .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 ),
Original file line number Diff line number Diff line change 2929VICARE_NAME = "ViCare"
3030VICARE_TOKEN_FILENAME = "vicare_token.save"
3131
32+ VIESSMANN_DEVELOPER_PORTAL = "https://app.developer.viessmann-climatesolutions.com"
33+
3234CONF_CIRCUIT = "circuit"
3335CONF_HEATING_TYPE = "heating_type"
3436
Original file line number Diff line number Diff line change 99from homeassistant .helpers .device_registry import DeviceInfo
1010from homeassistant .helpers .entity import Entity
1111
12- from .const import DOMAIN
12+ from .const import DOMAIN , VIESSMANN_DEVELOPER_PORTAL
1313
1414
1515class 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 )
Original file line number Diff line number Diff line change 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%]" ,
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 },
You can’t perform that action at this time.
0 commit comments