|
| string | name = "api:notify.html5" |
| |
| string | url = "/api/notify.html5" |
| |
Accepts push registrations from a browser.
Definition at line 211 of file notify.py.
◆ __init__()
| def homeassistant.components.html5.notify.HTML5PushRegistrationView.__init__ |
( |
|
self, |
|
|
|
registrations, |
|
|
|
json_path |
|
) |
| |
Init HTML5PushRegistrationView.
Definition at line 217 of file notify.py.
◆ delete()
| def homeassistant.components.html5.notify.HTML5PushRegistrationView.delete |
( |
|
self, |
|
|
|
request |
|
) |
| |
Delete a registration.
Definition at line 267 of file notify.py.
◆ find_registration_name()
| def homeassistant.components.html5.notify.HTML5PushRegistrationView.find_registration_name |
( |
|
self, |
|
|
|
data, |
|
|
|
suggested = None |
|
) |
| |
Find a registration name matching data or generate a unique one.
Definition at line 258 of file notify.py.
◆ post()
| def homeassistant.components.html5.notify.HTML5PushRegistrationView.post |
( |
|
self, |
|
|
|
request |
|
) |
| |
Accept the POST request for push registrations from a browser.
Definition at line 222 of file notify.py.
◆ json_path
| homeassistant.components.html5.notify.HTML5PushRegistrationView.json_path |
◆ name
| string homeassistant.components.html5.notify.HTML5PushRegistrationView.name = "api:notify.html5" |
|
static |
◆ registrations
| homeassistant.components.html5.notify.HTML5PushRegistrationView.registrations |
◆ url
| string homeassistant.components.html5.notify.HTML5PushRegistrationView.url = "/api/notify.html5" |
|
static |
The documentation for this class was generated from the following file:
- core/homeassistant/components/html5/notify.py