Move translatable URLs out of strings.json for vera (#154475)

This commit is contained in:
Anuj Soni
2025-10-15 11:21:52 +05:30
committed by GitHub
parent 939cbc8644
commit d91eccb209
2 changed files with 10 additions and 2 deletions

View File

@@ -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:

View File

@@ -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%]"