Skip to content

Commit d812e9d

Browse files
andrew-codechimpfrenck
authored andcommitted
Move URL out of Mealie strings.json (home-assistant#154230)
1 parent fa1071b commit d812e9d

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
@@ -26,6 +26,8 @@
2626
}
2727
)
2828

29+
EXAMPLE_URL = "http://192.168.1.123:1234"
30+
2931

3032
class MealieConfigFlow(ConfigFlow, domain=DOMAIN):
3133
"""Mealie config flow."""
@@ -84,6 +86,7 @@ async def async_step_user(
8486
step_id="user",
8587
data_schema=USER_SCHEMA,
8688
errors=errors,
89+
description_placeholders={"example_url": EXAMPLE_URL},
8790
)
8891

8992
async def async_step_reauth(
@@ -114,6 +117,7 @@ async def async_step_reauth_confirm(
114117
step_id="reauth_confirm",
115118
data_schema=REAUTH_SCHEMA,
116119
errors=errors,
120+
description_placeholders={"example_url": EXAMPLE_URL},
117121
)
118122

119123
async def async_step_reconfigure(
@@ -142,4 +146,5 @@ async def async_step_reconfigure(
142146
step_id="reconfigure",
143147
data_schema=USER_SCHEMA,
144148
errors=errors,
149+
description_placeholders={"example_url": EXAMPLE_URL},
145150
)

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)