From 00025c8f42e23a2f5d503b343402c38a7cc1dba6 Mon Sep 17 00:00:00 2001 From: Anuj Soni <41353742+sonianuj287@users.noreply.github.com> Date: Tue, 14 Oct 2025 22:01:01 +0530 Subject: [PATCH] Move translatable URLs out of strings.json for isy994 (#154464) --- homeassistant/components/isy994/config_flow.py | 16 ++++++++++++++-- homeassistant/components/isy994/strings.json | 4 ++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/isy994/config_flow.py b/homeassistant/components/isy994/config_flow.py index 4f0217fd0c6..77ca0c851ec 100644 --- a/homeassistant/components/isy994/config_flow.py +++ b/homeassistant/components/isy994/config_flow.py @@ -177,6 +177,9 @@ class Isy994ConfigFlow(ConfigFlow, domain=DOMAIN): step_id="user", data_schema=_data_schema(self.discovered_conf), errors=errors, + description_placeholders={ + "sample_ip": "http://192.168.10.100:80", + }, ) async def _async_set_unique_id_or_update( @@ -302,7 +305,10 @@ class Isy994ConfigFlow(ConfigFlow, domain=DOMAIN): CONF_HOST: existing_data[CONF_HOST], } return self.async_show_form( - description_placeholders={CONF_HOST: existing_data[CONF_HOST]}, + description_placeholders={ + CONF_HOST: existing_data[CONF_HOST], + "sample_ip": "http://192.168.10.100:80", + }, step_id="reauth_confirm", data_schema=vol.Schema( { @@ -347,7 +353,13 @@ class OptionsFlowHandler(OptionsFlowWithReload): } ) - return self.async_show_form(step_id="init", data_schema=options_schema) + return self.async_show_form( + step_id="init", + data_schema=options_schema, + description_placeholders={ + "sample_ip": "http://192.168.10.100:80", + }, + ) class InvalidHost(HomeAssistantError): diff --git a/homeassistant/components/isy994/strings.json b/homeassistant/components/isy994/strings.json index 73f6cc98b12..230ad5fca4e 100644 --- a/homeassistant/components/isy994/strings.json +++ b/homeassistant/components/isy994/strings.json @@ -9,7 +9,7 @@ "password": "[%key:common::config_flow::data::password%]", "tls": "The TLS version of the ISY controller." }, - "description": "The host entry must be in full URL format, e.g., http://192.168.10.100:80", + "description": "The host entry must be in full URL format, e.g., {sample_ip}", "title": "Connect to your ISY" }, "reauth_confirm": { @@ -26,7 +26,7 @@ "unknown": "[%key:common::config_flow::error::unknown%]", "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", "invalid_auth": "[%key:common::config_flow::error::invalid_auth%]", - "invalid_host": "The host entry was not in full URL format, e.g., http://192.168.10.100:80" + "invalid_host": "The host entry was not in full URL format, e.g., {sample_ip}" }, "abort": { "already_configured": "[%key:common::config_flow::abort::already_configured_device%]",