mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 06:46:58 +00:00
Correct service calls on persistent_notification page (#9954)
I updated the service calls to correct ones (they had a / instead of a .) and also removed the Services icon image since it's gone with the redesigned Dev Tools in 0.96.
This commit is contained in:
parent
6e4424dcf9
commit
b7f2396ce7
@ -8,7 +8,7 @@ ha_release: 0.23
|
|||||||
ha_qa_scale: internal
|
ha_qa_scale: internal
|
||||||
---
|
---
|
||||||
|
|
||||||
The `persistent_notification` can be used to show a message on the frontend that has to be dismissed by the user.
|
The `persistent_notification` integration can be used to show a notfication on the frontend that has to be dismissed by the user.
|
||||||
|
|
||||||
<p class='img'>
|
<p class='img'>
|
||||||
<img src='/images/screenshots/persistent-notification.png' />
|
<img src='/images/screenshots/persistent-notification.png' />
|
||||||
@ -16,7 +16,7 @@ The `persistent_notification` can be used to show a message on the frontend that
|
|||||||
|
|
||||||
### Service
|
### Service
|
||||||
|
|
||||||
The service `persistent_notification/create` takes in `message`, `title`, and `notification_id`.
|
The service `persistent_notification.create` takes in `message`, `title`, and `notification_id`.
|
||||||
|
|
||||||
| Service data attribute | Optional | Description |
|
| Service data attribute | Optional | Description |
|
||||||
| ---------------------- | -------- | ----------- |
|
| ---------------------- | -------- | ----------- |
|
||||||
@ -36,7 +36,7 @@ action:
|
|||||||
title: "Custom subject"
|
title: "Custom subject"
|
||||||
```
|
```
|
||||||
|
|
||||||
The service `persistent_notification/dismiss` requires a `notification_id`.
|
The service `persistent_notification.dismiss` requires a `notification_id`.
|
||||||
|
|
||||||
| Service data attribute | Optional | Description |
|
| Service data attribute | Optional | Description |
|
||||||
| ---------------------- | -------- | ----------- |
|
| ---------------------- | -------- | ----------- |
|
||||||
@ -97,7 +97,7 @@ The message attribute supports the [Markdown formatting syntax](https://daringfi
|
|||||||
|
|
||||||
### Create a persistent notification
|
### Create a persistent notification
|
||||||
|
|
||||||
Choose <img src='/images/screenshots/developer-tool-services-icon.png' alt='service developer tool icon' class="no-shadow" height="38" /> **Services** from the **Developer Tools** to call the `persistent_notification` service. Select `persistent_notification/create` from the list of **Available services:** and enter something like the sample below into the **Service Data** field and hit **CALL SERVICE**.
|
Choose the **Services** tab from the **Developer Tools** sidebar item, then select the `persistent_notification.create` service from the "Service" dropdown. Enter something like the sample below into the **Service Data** field and press the **CALL SERVICE** button.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user