Skip to content

Commit c333036

Browse files
authored
Move translatable URL out of strings.json for ntfy integration (home-assistant#155859)
1 parent 002eed2 commit c333036

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

homeassistant/components/ntfy/notify.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ async def async_setup_entry(
8181
SERVICE_PUBLISH,
8282
SERVICE_PUBLISH_SCHEMA,
8383
"publish",
84+
description_placeholders={
85+
"markdown_guide_url": "https://www.markdownguide.org/basic-syntax/"
86+
},
8487
)
8588

8689

homeassistant/components/ntfy/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@
345345
"name": "Icon URL"
346346
},
347347
"markdown": {
348-
"description": "Enable Markdown formatting for the message body. See the Markdown guide for syntax details: https://www.markdownguide.org/basic-syntax/.",
348+
"description": "Enable Markdown formatting for the message body. See the Markdown guide for syntax details: {markdown_guide_url}.",
349349
"name": "Format as Markdown"
350350
},
351351
"message": {

0 commit comments

Comments
 (0)