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

Public Member Functions

None __init__ (self, EntityComponent[MediaPlayerEntity] component)
 
web.Response get (self, web.Request request, str entity_id, MediaType|str|None media_content_type=None, str|None media_content_id=None)
 

Public Attributes

 component
 

Static Public Attributes

 extra_urls
 
 name
 
 requires_auth
 
 url
 

Detailed Description

Media player view to serve an image.

Definition at line 1215 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.media_player.MediaPlayerImageView.__init__ (   self,
EntityComponent[MediaPlayerEntity component 
)
Initialize a media player view.

Definition at line 1227 of file __init__.py.

Member Function Documentation

◆ get()

web.Response homeassistant.components.media_player.MediaPlayerImageView.get (   self,
web.Request  request,
str  entity_id,
MediaType | str | None   media_content_type = None,
str | None   media_content_id = None 
)
Start a get request.

Definition at line 1231 of file __init__.py.

Member Data Documentation

◆ component

homeassistant.components.media_player.MediaPlayerImageView.component

Definition at line 1229 of file __init__.py.

◆ extra_urls

homeassistant.components.media_player.MediaPlayerImageView.extra_urls
static

Definition at line 1221 of file __init__.py.

◆ name

homeassistant.components.media_player.MediaPlayerImageView.name
static

Definition at line 1220 of file __init__.py.

◆ requires_auth

homeassistant.components.media_player.MediaPlayerImageView.requires_auth
static

Definition at line 1218 of file __init__.py.

◆ url

homeassistant.components.media_player.MediaPlayerImageView.url
static

Definition at line 1219 of file __init__.py.


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