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

Public Member Functions

def __init__ (self, registrations)
 
def check_authorization_header (self, request)
 
def decode_jwt (self, token)
 
def post (self, request)
 

Public Attributes

 registrations
 

Static Public Attributes

string name = "api:notify.html5/callback"
 
bool requires_auth = False
 
string url = "/api/notify.html5/callback"
 

Detailed Description

Accepts push registrations from a browser.

Definition at line 304 of file notify.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 311 of file notify.py.

Member Function Documentation

◆ check_authorization_header()

def homeassistant.components.html5.notify.HTML5PushCallbackView.check_authorization_header (   self,
  request 
)
Check the authorization header.

Definition at line 338 of file notify.py.

◆ decode_jwt()

def homeassistant.components.html5.notify.HTML5PushCallbackView.decode_jwt (   self,
  token 
)
Find the registration that signed this JWT and return it.

Definition at line 315 of file notify.py.

◆ post()

def homeassistant.components.html5.notify.HTML5PushCallbackView.post (   self,
  request 
)
Accept the POST request for push registrations event callback.

Definition at line 367 of file notify.py.

Member Data Documentation

◆ name

string homeassistant.components.html5.notify.HTML5PushCallbackView.name = "api:notify.html5/callback"
static

Definition at line 309 of file notify.py.

◆ registrations

homeassistant.components.html5.notify.HTML5PushCallbackView.registrations

Definition at line 313 of file notify.py.

◆ requires_auth

bool homeassistant.components.html5.notify.HTML5PushCallbackView.requires_auth = False
static

Definition at line 307 of file notify.py.

◆ url

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

Definition at line 308 of file notify.py.


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