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

Classes

class  AnthropicConfigFlow
 
class  AnthropicOptionsFlow
 

Functions

dict anthropic_config_option_schema (HomeAssistant hass, dict[str, Any]|MappingProxyType[str, Any] options)
 
None validate_input (HomeAssistant hass, dict[str, Any] data)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary RECOMMENDED_OPTIONS
 
 STEP_USER_DATA_SCHEMA
 

Detailed Description

Config flow for Anthropic integration.

Function Documentation

◆ anthropic_config_option_schema()

dict homeassistant.components.anthropic.config_flow.anthropic_config_option_schema ( HomeAssistant  hass,
dict[str, Any] | MappingProxyType[str, Any]  options 
)
Return a schema for Anthropic completion options.

Definition at line 164 of file config_flow.py.

◆ validate_input()

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

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

Definition at line 57 of file config_flow.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 42 of file config_flow.py.

◆ RECOMMENDED_OPTIONS

dictionary homeassistant.components.anthropic.config_flow.RECOMMENDED_OPTIONS
Initial value:
1 = {
2  CONF_RECOMMENDED: True,
3  CONF_LLM_HASS_API: llm.LLM_API_ASSIST,
4  CONF_PROMPT: llm.DEFAULT_INSTRUCTIONS_PROMPT,
5 }

Definition at line 50 of file config_flow.py.

◆ STEP_USER_DATA_SCHEMA

homeassistant.components.anthropic.config_flow.STEP_USER_DATA_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_API_KEY): str,
4  }
5 )

Definition at line 44 of file config_flow.py.