Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions homeassistant/components/persistent_notification/services.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,25 @@
create:
name: Create
description: Show a notification in the frontend.
fields:
message:
name: Message
description: Message body of the notification.
required: true
example: Please check your configuration.yaml.
selector:
text:
title:
name: Title
description: Optional title for your notification.
example: Test notification
selector:
text:
notification_id:
name: Notification ID
description: Target ID of the notification, will replace a notification with the same ID.
example: 1234
selector:
text:

dismiss:
name: Dismiss
description: Remove a notification from the frontend.
fields:
notification_id:
name: Notification ID
description: Target ID of the notification, which should be removed.
required: true
example: 1234
selector:
text:

dismiss_all:
name: Dismiss All
description: Remove all notifications.
36 changes: 36 additions & 0 deletions homeassistant/components/persistent_notification/strings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"services": {
"create": {
"name": "Create",
"description": "Shows a notification in the frontend.",
Comment thread
frenck marked this conversation as resolved.
Outdated
"fields": {
"message": {
"name": "Message",
"description": "Message body of the notification."
},
"title": {
"name": "Title",
"description": "Optional title for your notification."
Comment thread
frenck marked this conversation as resolved.
Outdated
},
"notification_id": {
"name": "Notification ID",
"description": "Target ID of the notification, will replace a notification with the same ID."
Comment thread
frenck marked this conversation as resolved.
Outdated
}
}
},
"dismiss": {
"name": "Dismiss",
"description": "Removes a notification from the frontend.",
Comment thread
frenck marked this conversation as resolved.
Outdated
"fields": {
"notification_id": {
"name": "Notification ID",
"description": "Target ID of the notification, which should be removed."
Comment thread
frenck marked this conversation as resolved.
Outdated
}
}
},
"dismiss_all": {
"name": "Dismiss all",
"description": "Removes all notifications."
Comment thread
frenck marked this conversation as resolved.
Outdated
}
}
}