Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.unifiprotect.views.ProtectProxyView Class Reference
Inheritance diagram for homeassistant.components.unifiprotect.views.ProtectProxyView:
[legend]
Collaboration diagram for homeassistant.components.unifiprotect.views.ProtectProxyView:
[legend]

Public Member Functions

None __init__ (self, HomeAssistant hass)
 

Public Attributes

 hass
 

Static Public Attributes

bool requires_auth = True
 

Private Member Functions

Camera|None _async_get_camera (self, ProtectData data, str camera_id)
 
ProtectData|web.Response _get_data_or_404 (self, str nvr_id_or_entry_id)
 

Detailed Description

Base class to proxy request to UniFi Protect console.

Definition at line 110 of file views.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.unifiprotect.views.ProtectProxyView.__init__ (   self,
HomeAssistant  hass 
)
Initialize a thumbnail proxy view.

Definition at line 115 of file views.py.

Member Function Documentation

◆ _async_get_camera()

Camera | None homeassistant.components.unifiprotect.views.ProtectProxyView._async_get_camera (   self,
ProtectData  data,
str  camera_id 
)
private

Definition at line 128 of file views.py.

◆ _get_data_or_404()

ProtectData | web.Response homeassistant.components.unifiprotect.views.ProtectProxyView._get_data_or_404 (   self,
str  nvr_id_or_entry_id 
)
private

Definition at line 119 of file views.py.

Member Data Documentation

◆ hass

homeassistant.components.unifiprotect.views.ProtectProxyView.hass

Definition at line 117 of file views.py.

◆ requires_auth

bool homeassistant.components.unifiprotect.views.ProtectProxyView.requires_auth = True
static

Definition at line 113 of file views.py.


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