Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b832561

Browse files
Move URL out of Mastodon strings.json (home-assistant#154231)
1 parent c59d295 commit b832561

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)

AltStyle によって変換されたページ (->オリジナル) /