Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.openweathermap.utils Namespace Reference

Functions

tuple[dict[str, Any], dict[str, Any]] build_data_and_options (dict[str, Any] combined_data)
 
def validate_api_key (api_key, mode)
 

Variables

dictionary OPTION_DEFAULTS = {CONF_LANGUAGE: DEFAULT_LANGUAGE, CONF_MODE: DEFAULT_OWM_MODE}
 

Detailed Description

Util functions for OpenWeatherMap.

Function Documentation

◆ build_data_and_options()

tuple[dict[str, Any], dict[str, Any]] homeassistant.components.openweathermap.utils.build_data_and_options ( dict[str, Any]  combined_data)
Split combined data and options.

Definition at line 31 of file utils.py.

◆ validate_api_key()

def homeassistant.components.openweathermap.utils.validate_api_key (   api_key,
  mode 
)
Validate API key.

Definition at line 14 of file utils.py.

Variable Documentation

◆ OPTION_DEFAULTS

dictionary homeassistant.components.openweathermap.utils.OPTION_DEFAULTS = {CONF_LANGUAGE: DEFAULT_LANGUAGE, CONF_MODE: DEFAULT_OWM_MODE}

Definition at line 11 of file utils.py.