1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-02 00:20:30 +01:00

Improve strings in HTML5 integration (#166985)

This commit is contained in:
Manu
2026-03-31 22:45:32 +02:00
committed by GitHub
parent e4328fe34d
commit 19761a25da
2 changed files with 10 additions and 4 deletions

View File

@@ -27,7 +27,11 @@ def deprecated_notify_action_call(
is_fixable=False,
severity=IssueSeverity.WARNING,
translation_key="deprecated_notify_action",
translation_placeholders={"action": action},
translation_placeholders={
"action": action,
"new_action_1": "notify.send_message",
"new_action_2": "html5.send_message",
},
)

View File

@@ -32,7 +32,9 @@
"received": "Received"
}
},
"tag": { "name": "Tag" }
"tag": {
"name": "[%key:component::html5::services::send_message::fields::tag::name%]"
}
}
}
}
@@ -54,7 +56,7 @@
"title": "[%key:component::html5::issues::deprecated_notify_action::title%]"
},
"deprecated_notify_action": {
"description": "The action `{action}` is deprecated and will be removed in a future release.\n\nPlease update your automations and scripts to use the notify entities with the `notify.send_message` or `html5.send_message` actions instead.",
"description": "The action `{action}` is deprecated and will be removed in a future release.\n\nPlease update your automations and scripts to use the notify entities with the `{new_action_1}` or `{new_action_2}` actions instead.",
"title": "Detected use of deprecated action {action}"
}
},
@@ -110,7 +112,7 @@
"fields": {
"tag": {
"description": "The tag of the notifications to dismiss. If not specified, all notifications will be dismissed.",
"name": "Tag"
"name": "[%key:component::html5::services::send_message::fields::tag::name%]"
}
},
"name": "Dismiss message"