Skip to content

Commit 6e515d4

Browse files
Move URL out of Mealie strings.json (home-assistant#154230)
1 parent 7f5128e commit 6e515d4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

homeassistant/components/mealie/config_flow.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
}
3333
)
3434

35+
EXAMPLE_URL = "http://192.168.1.123:1234"
36+
3537

3638
class MealieConfigFlow(ConfigFlow, domain=DOMAIN):
3739
"""Mealie config flow."""
@@ -93,6 +95,7 @@ async def async_step_user(
9395
step_id="user",
9496
data_schema=USER_SCHEMA,
9597
errors=errors,
98+
description_placeholders={"example_url": EXAMPLE_URL},
9699
)
97100

98101
async def async_step_reauth(
@@ -123,6 +126,7 @@ async def async_step_reauth_confirm(
123126
step_id="reauth_confirm",
124127
data_schema=REAUTH_SCHEMA,
125128
errors=errors,
129+
description_placeholders={"example_url": EXAMPLE_URL},
126130
)
127131

128132
async def async_step_reconfigure(
@@ -151,6 +155,7 @@ async def async_step_reconfigure(
151155
step_id="reconfigure",
152156
data_schema=USER_SCHEMA,
153157
errors=errors,
158+
description_placeholders={"example_url": EXAMPLE_URL},
154159
)
155160

156161
async def async_step_hassio(

homeassistant/components/mealie/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"common": {
3-
"data_description_host": "The URL of your Mealie instance, for example, http://192.168.1.123:1234",
3+
"data_description_host": "The URL of your Mealie instance, for example, {example_url}.",
44
"data_description_api_token": "The API token of your Mealie instance from your user profile within Mealie.",
55
"data_description_verify_ssl": "Should SSL certificates be verified? This should be off for self-signed certificates."
66
},

0 commit comments

Comments
 (0)