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

Classes

class  NukiConfigFlow
 

Functions

dict[str, Any] validate_input (HomeAssistant hass, dict[str, Any] data)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 REAUTH_SCHEMA
 
 USER_SCHEMA
 

Detailed Description

Config flow to configure the Nuki integration.

Function Documentation

◆ validate_input()

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

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

Definition at line 38 of file config_flow.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 20 of file config_flow.py.

◆ REAUTH_SCHEMA

homeassistant.components.nuki.config_flow.REAUTH_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_TOKEN): str,
4  vol.Optional(CONF_ENCRYPT_TOKEN, default=True): bool,
5  }
6 )

Definition at line 30 of file config_flow.py.

◆ USER_SCHEMA

homeassistant.components.nuki.config_flow.USER_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_HOST): str,
4  vol.Optional(CONF_PORT, default=DEFAULT_PORT): vol.Coerce(int),
5  vol.Required(CONF_TOKEN): str,
6  }
7 )

Definition at line 22 of file config_flow.py.