Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.nest.NestEventMediaView Class Reference
Inheritance diagram for homeassistant.components.nest.NestEventMediaView:
[legend]
Collaboration diagram for homeassistant.components.nest.NestEventMediaView:
[legend]

Public Member Functions

web.StreamResponse handle_media (self, Media media)
 
Media|None load_media (self, Device nest_device, str event_token)
 
- Public Member Functions inherited from homeassistant.components.nest.NestEventViewBase
None __init__ (self, HomeAssistant hass)
 
web.StreamResponse get (self, web.Request request, str device_id, str event_token)
 

Static Public Attributes

string name = "api:nest:event_media"
 
string url = "/api/nest/event_media/{device_id}/{event_token}"
 

Additional Inherited Members

- Public Attributes inherited from homeassistant.components.nest.NestEventViewBase
 hass
 

Detailed Description

Returns media for related to events for a specific device.

This is primarily used to render media for events for MediaSource. The media type
depends on the specific device e.g. an image, or a movie clip preview.

Definition at line 354 of file __init__.py.

Member Function Documentation

◆ handle_media()

web.StreamResponse homeassistant.components.nest.NestEventMediaView.handle_media (   self,
Media  media 
)
Process the specified media.

Reimplemented from homeassistant.components.nest.NestEventViewBase.

Definition at line 368 of file __init__.py.

◆ load_media()

Media | None homeassistant.components.nest.NestEventMediaView.load_media (   self,
Device  nest_device,
str  event_token 
)
Load the specified media.

Reimplemented from homeassistant.components.nest.NestEventViewBase.

Definition at line 364 of file __init__.py.

Member Data Documentation

◆ name

string homeassistant.components.nest.NestEventMediaView.name = "api:nest:event_media"
static

Definition at line 362 of file __init__.py.

◆ url

string homeassistant.components.nest.NestEventMediaView.url = "/api/nest/event_media/{device_id}/{event_token}"
static

Definition at line 361 of file __init__.py.


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