Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.html5.notify.HTML5PushRegistrationView Class Reference
Inheritance diagram for homeassistant.components.html5.notify.HTML5PushRegistrationView:
[legend]
Collaboration diagram for homeassistant.components.html5.notify.HTML5PushRegistrationView:
[legend]

Public Member Functions

def __init__ (self, registrations, json_path)
 
def delete (self, request)
 
def find_registration_name (self, data, suggested=None)
 
def post (self, request)
 

Public Attributes

 json_path
 
 registrations
 

Static Public Attributes

string name = "api:notify.html5"
 
string url = "/api/notify.html5"
 

Detailed Description

Accepts push registrations from a browser.

Definition at line 211 of file notify.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.html5.notify.HTML5PushRegistrationView.__init__ (   self,
  registrations,
  json_path 
)
Init HTML5PushRegistrationView.

Definition at line 217 of file notify.py.

Member Function Documentation

◆ 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.

Member Data Documentation

◆ json_path

homeassistant.components.html5.notify.HTML5PushRegistrationView.json_path

Definition at line 220 of file notify.py.

◆ name

string homeassistant.components.html5.notify.HTML5PushRegistrationView.name = "api:notify.html5"
static

Definition at line 215 of file notify.py.

◆ registrations

homeassistant.components.html5.notify.HTML5PushRegistrationView.registrations

Definition at line 219 of file notify.py.

◆ url

string homeassistant.components.html5.notify.HTML5PushRegistrationView.url = "/api/notify.html5"
static

Definition at line 214 of file notify.py.


The documentation for this class was generated from the following file: