Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.ollama Namespace Reference

Namespaces

 config_flow
 
 const
 
 conversation
 
 models
 

Functions

bool async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 

Variables

list __all__
 
 _LOGGER = logging.getLogger(__name__)
 
 CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)
 
tuple PLATFORMS = (Platform.CONVERSATION,)
 

Detailed Description

The Ollama integration.

Function Documentation

◆ async_setup_entry()

bool homeassistant.components.ollama.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Set up Ollama from a config entry.

Definition at line 44 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.ollama.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload Ollama.

Definition at line 60 of file __init__.py.

Variable Documentation

◆ __all__

list homeassistant.components.ollama.__all__
private
Initial value:
1 = [
2  "CONF_URL",
3  "CONF_PROMPT",
4  "CONF_MODEL",
5  "CONF_MAX_HISTORY",
6  "CONF_NUM_CTX",
7  "CONF_KEEP_ALIVE",
8  "DOMAIN",
9 ]

Definition at line 30 of file __init__.py.

◆ _LOGGER

homeassistant.components.ollama._LOGGER = logging.getLogger(__name__)
private

Definition at line 28 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.ollama.CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)

Definition at line 40 of file __init__.py.

◆ PLATFORMS

tuple homeassistant.components.ollama.PLATFORMS = (Platform.CONVERSATION,)

Definition at line 41 of file __init__.py.