Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.smappee.api.ConfigEntrySmappeeApi Class Reference
Inheritance diagram for homeassistant.components.smappee.api.ConfigEntrySmappeeApi:
[legend]
Collaboration diagram for homeassistant.components.smappee.api.ConfigEntrySmappeeApi:
[legend]

Public Member Functions

None __init__ (self, core.HomeAssistant hass, config_entries.ConfigEntry config_entry, config_entry_oauth2_flow.AbstractOAuth2Implementation implementation)
 
dict refresh_tokens (self)
 

Public Attributes

 config_entry
 
 hass
 
 session
 

Detailed Description

Provide Smappee authentication tied to an OAuth2 based config entry.

Definition at line 14 of file api.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.smappee.api.ConfigEntrySmappeeApi.__init__ (   self,
core.HomeAssistant  hass,
config_entries.ConfigEntry  config_entry,
config_entry_oauth2_flow.AbstractOAuth2Implementation  implementation 
)
Initialize Smappee Auth.

Definition at line 17 of file api.py.

Member Function Documentation

◆ refresh_tokens()

dict homeassistant.components.smappee.api.ConfigEntrySmappeeApi.refresh_tokens (   self)
Refresh and return new Smappee tokens using Home Assistant OAuth2 session.

Definition at line 42 of file api.py.

Member Data Documentation

◆ config_entry

homeassistant.components.smappee.api.ConfigEntrySmappeeApi.config_entry

Definition at line 25 of file api.py.

◆ hass

homeassistant.components.smappee.api.ConfigEntrySmappeeApi.hass

Definition at line 24 of file api.py.

◆ session

homeassistant.components.smappee.api.ConfigEntrySmappeeApi.session

Definition at line 26 of file api.py.


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