Implement the notification service for HTML5.
Definition at line 403 of file notify.py.
◆ __init__()
| def homeassistant.components.html5.notify.HTML5NotificationService.__init__ |
( |
|
self, |
|
|
|
hass, |
|
|
|
vapid_prv, |
|
|
|
vapid_email, |
|
|
|
registrations, |
|
|
|
json_path |
|
) |
| |
Initialize the service.
Definition at line 406 of file notify.py.
◆ _push_message()
| def homeassistant.components.html5.notify.HTML5NotificationService._push_message |
( |
|
self, |
|
|
|
payload, |
|
|
** |
kwargs |
|
) |
| |
|
private |
◆ async_dismiss()
| def homeassistant.components.html5.notify.HTML5NotificationService.async_dismiss |
( |
|
self, |
|
|
** |
kwargs |
|
) |
| |
Dismisses a notification.
This method must be run in the event loop.
Definition at line 446 of file notify.py.
◆ dismiss()
| def homeassistant.components.html5.notify.HTML5NotificationService.dismiss |
( |
|
self, |
|
|
** |
kwargs |
|
) |
| |
Dismisses a notification.
Definition at line 438 of file notify.py.
◆ send_message()
| def homeassistant.components.html5.notify.HTML5NotificationService.send_message |
( |
|
self, |
|
|
|
message = "", |
|
|
** |
kwargs |
|
) |
| |
Send a message to a user.
Definition at line 453 of file notify.py.
◆ targets()
| def homeassistant.components.html5.notify.HTML5NotificationService.targets |
( |
|
self | ) |
|
Return a dictionary of registered targets.
Definition at line 434 of file notify.py.
◆ _vapid_email
| homeassistant.components.html5.notify.HTML5NotificationService._vapid_email |
|
private |
◆ _vapid_prv
| homeassistant.components.html5.notify.HTML5NotificationService._vapid_prv |
|
private |
◆ registrations
| homeassistant.components.html5.notify.HTML5NotificationService.registrations |
◆ registrations_json_path
| homeassistant.components.html5.notify.HTML5NotificationService.registrations_json_path |
The documentation for this class was generated from the following file:
- core/homeassistant/components/html5/notify.py