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

Classes

class  NordpoolConfigFlow
 

Functions

dict[str, str] test_api (HomeAssistant hass, dict[str, Any] user_input)
 

Variables

 DATA_SCHEMA
 
list SELECT_AREAS
 
list SELECT_CURRENCY = [currency.value for currency in Currency]
 

Detailed Description

Adds config flow for Nord Pool integration.

Function Documentation

◆ test_api()

dict[str, str] homeassistant.components.nordpool.config_flow.test_api ( HomeAssistant  hass,
dict[str, Any]  user_input 
)
Test fetch data from Nord Pool.

Definition at line 57 of file config_flow.py.

Variable Documentation

◆ DATA_SCHEMA

homeassistant.components.nordpool.config_flow.DATA_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_AREAS, default=[]): SelectSelector(
4  SelectSelectorConfig(
5  options=SELECT_AREAS,
6  multiple=True,
7  mode=SelectSelectorMode.DROPDOWN,
8  sort=True,
9  )
10  ),
11  vol.Required(CONF_CURRENCY, default="SEK"): SelectSelector(
12  SelectSelectorConfig(
13  options=SELECT_CURRENCY,
14  multiple=False,
15  mode=SelectSelectorMode.DROPDOWN,
16  sort=True,
17  )
18  ),
19  }
20 )

Definition at line 35 of file config_flow.py.

◆ SELECT_AREAS

list homeassistant.components.nordpool.config_flow.SELECT_AREAS
Initial value:
1 = [
2  SelectOptionDict(value=area, label=name) for area, name in AREAS.items()
3 ]

Definition at line 30 of file config_flow.py.

◆ SELECT_CURRENCY

list homeassistant.components.nordpool.config_flow.SELECT_CURRENCY = [currency.value for currency in Currency]

Definition at line 33 of file config_flow.py.