From d91eccb20916858e0f8814c7f3bc84265989cb4b Mon Sep 17 00:00:00 2001 From: Anuj Soni <41353742+sonianuj287@users.noreply.github.com> Date: Wed, 15 Oct 2025 11:21:52 +0530 Subject: [PATCH] Move translatable URLs out of strings.json for vera (#154475) --- homeassistant/components/vera/config_flow.py | 8 ++++++++ homeassistant/components/vera/strings.json | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/vera/config_flow.py b/homeassistant/components/vera/config_flow.py index f02549e7857..dfc0914e32e 100644 --- a/homeassistant/components/vera/config_flow.py +++ b/homeassistant/components/vera/config_flow.py @@ -90,6 +90,10 @@ class OptionsFlowHandler(OptionsFlowWithReload): return self.async_show_form( step_id="init", data_schema=vol.Schema(options_schema(self.config_entry.options)), + description_placeholders={ + "sample_ip": "http://192.168.1.161:3480", + "documentation_url": "https://www.home-assistant.io/integrations/vera/", + }, ) @@ -121,6 +125,10 @@ class VeraFlowHandler(ConfigFlow, domain=DOMAIN): data_schema=vol.Schema( {vol.Required(CONF_CONTROLLER): str, **options_schema()} ), + description_placeholders={ + "sample_ip": "http://192.168.1.161:3480", + "documentation_url": "https://www.home-assistant.io/integrations/vera/", + }, ) async def async_step_import(self, import_data: dict[str, Any]) -> ConfigFlowResult: diff --git a/homeassistant/components/vera/strings.json b/homeassistant/components/vera/strings.json index dcb8f6fc3a2..acb166d4f64 100644 --- a/homeassistant/components/vera/strings.json +++ b/homeassistant/components/vera/strings.json @@ -12,7 +12,7 @@ "exclude": "Vera device IDs to exclude from Home Assistant." }, "data_description": { - "vera_controller_url": "It should look like this: http://192.168.1.161:3480" + "vera_controller_url": "It should look like this: {sample_ip}" } } } @@ -21,7 +21,7 @@ "step": { "init": { "title": "Vera controller options", - "description": "See the Vera documentation for details on optional parameters: https://www.home-assistant.io/integrations/vera/. Note: Any changes here require a restart of the Home Assistant server. To clear values, provide a space.", + "description": "See the Vera documentation for details on optional parameters: {documentation_url}. Note: Any changes here require a restart of the Home Assistant server. To clear values, provide a space.", "data": { "lights": "[%key:component::vera::config::step::user::data::lights%]", "exclude": "[%key:component::vera::config::step::user::data::exclude%]"