Remove URL from ViCare strings.json (#154243)

This commit is contained in:
Christopher Fenner
2025-10-14 14:47:12 +02:00
committed by GitHub
parent 8dba1edbe5
commit 38d0299951
4 changed files with 13 additions and 4 deletions
@@ -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
),
+2
View File
@@ -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"
+2 -2
View File
@@ -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,
)
+2 -2
View File
@@ -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."
}
},