Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.youtube.api.AsyncConfigEntryAuth Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, config_entry_oauth2_flow.OAuth2Session oauth2_session)
 
str access_token (self)
 
str check_and_refresh_token (self)
 
YouTube get_resource (self)
 

Public Attributes

 hass
 
 oauth_session
 
 youtube
 

Static Public Attributes

 None
 

Detailed Description

Provide Google authentication tied to an OAuth2 based config entry.

Definition at line 12 of file api.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.youtube.api.AsyncConfigEntryAuth.__init__ (   self,
HomeAssistant  hass,
config_entry_oauth2_flow.OAuth2Session  oauth2_session 
)
Initialize YouTube Auth.

Definition at line 17 of file api.py.

Member Function Documentation

◆ access_token()

str homeassistant.components.youtube.api.AsyncConfigEntryAuth.access_token (   self)
Return the access token.

Definition at line 27 of file api.py.

◆ check_and_refresh_token()

str homeassistant.components.youtube.api.AsyncConfigEntryAuth.check_and_refresh_token (   self)
Check the token.

Definition at line 31 of file api.py.

◆ get_resource()

YouTube homeassistant.components.youtube.api.AsyncConfigEntryAuth.get_resource (   self)
Create resource.

Definition at line 36 of file api.py.

Member Data Documentation

◆ hass

homeassistant.components.youtube.api.AsyncConfigEntryAuth.hass

Definition at line 24 of file api.py.

◆ None

homeassistant.components.youtube.api.AsyncConfigEntryAuth.None
static

Definition at line 15 of file api.py.

◆ oauth_session

homeassistant.components.youtube.api.AsyncConfigEntryAuth.oauth_session

Definition at line 23 of file api.py.

◆ youtube

homeassistant.components.youtube.api.AsyncConfigEntryAuth.youtube

Definition at line 40 of file api.py.


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