mirror of
https://github.com/home-assistant/core.git
synced 2026-09-05 02:25:07 -05:00
Move URL out of Mealie strings.json (#154230)
This commit is contained in:
@@ -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,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."
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user