mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 07:05:48 +01:00
Move translatable URLs out of strings.json for vera (#154475)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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%]"
|
||||
|
||||
Reference in New Issue
Block a user