Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.powerwall.PowerwallDataManager Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, Powerwall power_wall, str ip_address, str|None password, PowerwallRuntimeData runtime_data)
 
int api_changed (self)
 
PowerwallData async_update_data (self)
 

Public Attributes

 hass
 
 ip_address
 
 password
 
 power_wall
 
 runtime_data
 

Private Member Functions

None _recreate_powerwall_login (self)
 
PowerwallData _update_data (self)
 

Detailed Description

Class to manager powerwall data and relogin on failure.

Definition at line 48 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.powerwall.PowerwallDataManager.__init__ (   self,
HomeAssistant  hass,
Powerwall  power_wall,
str  ip_address,
str | None  password,
PowerwallRuntimeData  runtime_data 
)
Init the data manager.

Definition at line 51 of file __init__.py.

Member Function Documentation

◆ _recreate_powerwall_login()

None homeassistant.components.powerwall.PowerwallDataManager._recreate_powerwall_login (   self)
private
Recreate the login on auth failure.

Definition at line 71 of file __init__.py.

◆ _update_data()

PowerwallData homeassistant.components.powerwall.PowerwallDataManager._update_data (   self)
private
Fetch data from API endpoint.

Definition at line 85 of file __init__.py.

◆ api_changed()

int homeassistant.components.powerwall.PowerwallDataManager.api_changed (   self)
Return true if the api has changed out from under us.

Definition at line 67 of file __init__.py.

◆ async_update_data()

PowerwallData homeassistant.components.powerwall.PowerwallDataManager.async_update_data (   self)
Fetch data from API endpoint.

Definition at line 77 of file __init__.py.

Member Data Documentation

◆ hass

homeassistant.components.powerwall.PowerwallDataManager.hass

Definition at line 60 of file __init__.py.

◆ ip_address

homeassistant.components.powerwall.PowerwallDataManager.ip_address

Definition at line 61 of file __init__.py.

◆ password

homeassistant.components.powerwall.PowerwallDataManager.password

Definition at line 62 of file __init__.py.

◆ power_wall

homeassistant.components.powerwall.PowerwallDataManager.power_wall

Definition at line 64 of file __init__.py.

◆ runtime_data

homeassistant.components.powerwall.PowerwallDataManager.runtime_data

Definition at line 63 of file __init__.py.


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