Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.powerwall.config_flow Namespace Reference

Classes

class  PowerwallConfigFlow
 
class  WrongVersion
 

Functions

tuple[SiteInfoResponse, str] _login_and_fetch_site_info (Powerwall power_wall, str password)
 
bool _powerwall_is_reachable (str ip_address, str password)
 
dict[str, str] validate_input (HomeAssistant hass, dict[str, str] data)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary ENTRY_FAILURE_STATES
 

Detailed Description

Config flow for Tesla Powerwall integration.

Function Documentation

◆ _login_and_fetch_site_info()

tuple[SiteInfoResponse, str] homeassistant.components.powerwall.config_flow._login_and_fetch_site_info ( Powerwall  power_wall,
str   password 
)
private
Login to the powerwall and fetch the base info.

Definition at line 45 of file config_flow.py.

◆ _powerwall_is_reachable()

bool homeassistant.components.powerwall.config_flow._powerwall_is_reachable ( str  ip_address,
str  password 
)
private
Check if the powerwall is reachable.

Definition at line 57 of file config_flow.py.

◆ validate_input()

dict[str, str] homeassistant.components.powerwall.config_flow.validate_input ( HomeAssistant  hass,
dict[str, str]  data 
)
Validate the user input allows us to connect.

Data has the keys from schema with values provided by the user.

Definition at line 69 of file config_flow.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.powerwall.config_flow._LOGGER = logging.getLogger(__name__)
private

Definition at line 36 of file config_flow.py.

◆ ENTRY_FAILURE_STATES

dictionary homeassistant.components.powerwall.config_flow.ENTRY_FAILURE_STATES
Initial value:
1 = {
2  ConfigEntryState.SETUP_ERROR,
3  ConfigEntryState.SETUP_RETRY,
4 }

Definition at line 39 of file config_flow.py.