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 | |
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.
| 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.
| bool homeassistant.components.ecobee.EcobeeData.refresh | ( | self | ) |
Refresh ecobee tokens and update config entry.
Definition at line 104 of file __init__.py.
| def homeassistant.components.ecobee.EcobeeData.update | ( | self | ) |
Get the latest data from ecobee.com.
Definition at line 95 of file __init__.py.
|
private |
Definition at line 88 of file __init__.py.
| homeassistant.components.ecobee.EcobeeData.ecobee |
Definition at line 90 of file __init__.py.
| homeassistant.components.ecobee.EcobeeData.entry |
Definition at line 89 of file __init__.py.