Skip to content

Commit 5b3bca1

Browse files
andrew-codechimpfrenck
authored andcommitted
Move URL out of Mastodon strings.json (home-assistant#154231)
1 parent d812e9d commit 5b3bca1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

homeassistant/components/mastodon/config_flow.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,8 @@ async def async_step_user(
134134
data=user_input,
135135
)
136136

137-
return self.show_user_form(user_input, errors)
137+
return self.show_user_form(
138+
user_input,
139+
errors,
140+
description_placeholders={"example_url": "https://mastodon.social"},
141+
)

homeassistant/components/mastodon/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"access_token": "[%key:common::config_flow::data::access_token%]"
1010
},
1111
"data_description": {
12-
"base_url": "The URL of your Mastodon instance e.g. https://mastodon.social.",
12+
"base_url": "The URL of your Mastodon instance e.g. {example_url}.",
1313
"client_id": "The client key for the application created within your Mastodon account.",
1414
"client_secret": "The client secret for the application created within your Mastodon account.",
1515
"access_token": "The access token for the application created within your Mastodon account."

0 commit comments

Comments
 (0)