Move URL out of Mealie strings.json (#154230)

This commit is contained in:
Andrew Jackson
2025-10-17 20:30:59 +00:00
committed by Franck Nijhof
parent fa1071b221
commit d812e9d43c
2 changed files with 6 additions and 1 deletions
@@ -26,6 +26,8 @@ REAUTH_SCHEMA = vol.Schema(
}
)
EXAMPLE_URL = "http://192.168.1.123:1234"
class MealieConfigFlow(ConfigFlow, domain=DOMAIN):
"""Mealie config flow."""
@@ -84,6 +86,7 @@ class MealieConfigFlow(ConfigFlow, domain=DOMAIN):
step_id="user",
data_schema=USER_SCHEMA,
errors=errors,
description_placeholders={"example_url": EXAMPLE_URL},
)
async def async_step_reauth(
@@ -114,6 +117,7 @@ class MealieConfigFlow(ConfigFlow, domain=DOMAIN):
step_id="reauth_confirm",
data_schema=REAUTH_SCHEMA,
errors=errors,
description_placeholders={"example_url": EXAMPLE_URL},
)
async def async_step_reconfigure(
@@ -142,4 +146,5 @@ class MealieConfigFlow(ConfigFlow, domain=DOMAIN):
step_id="reconfigure",
data_schema=USER_SCHEMA,
errors=errors,
description_placeholders={"example_url": EXAMPLE_URL},
)
+1 -1
View File
@@ -1,6 +1,6 @@
{
"common": {
"data_description_host": "The URL of your Mealie instance, for example, http://192.168.1.123:1234",
"data_description_host": "The URL of your Mealie instance, for example, {example_url}.",
"data_description_api_token": "The API token of your Mealie instance from your user profile within Mealie.",
"data_description_verify_ssl": "Should SSL certificates be verified? This should be off for self-signed certificates."
},