Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.ecobee.EcobeeData Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, ConfigEntry entry, str api_key, str refresh_token)
 
bool refresh (self)
 
def update (self)
 

Public Attributes

 ecobee
 
 entry
 

Private Attributes

 _hass
 

Detailed Description

Handle getting the latest data from ecobee.com so platforms can use it.

Also handle refreshing tokens and updating config entry with refreshed tokens.

Definition at line 78 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.ecobee.EcobeeData.__init__ (   self,
HomeAssistant  hass,
ConfigEntry  entry,
str  api_key,
str   refresh_token 
)
Initialize the Ecobee data object.

Definition at line 84 of file __init__.py.

Member Function Documentation

◆ refresh()

bool homeassistant.components.ecobee.EcobeeData.refresh (   self)
Refresh ecobee tokens and update config entry.

Definition at line 104 of file __init__.py.

◆ update()

def homeassistant.components.ecobee.EcobeeData.update (   self)
Get the latest data from ecobee.com.

Definition at line 95 of file __init__.py.

Member Data Documentation

◆ _hass

homeassistant.components.ecobee.EcobeeData._hass
private

Definition at line 88 of file __init__.py.

◆ ecobee

homeassistant.components.ecobee.EcobeeData.ecobee

Definition at line 90 of file __init__.py.

◆ entry

homeassistant.components.ecobee.EcobeeData.entry

Definition at line 89 of file __init__.py.


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