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

Namespaces

 const
 
 helpers
 
 websocket_api
 

Classes

class  HistoryPeriodView
 

Functions

bool async_setup (HomeAssistant hass, ConfigType config)
 

Variables

 _ONE_DAY = timedelta(days=1)
 
string CONF_ORDER = "use_include_order"
 
 CONFIG_SCHEMA
 

Detailed Description

Provide pre-made queries on top of the recorder component.

Function Documentation

◆ async_setup()

bool homeassistant.components.history.async_setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up the history hooks.

Definition at line 46 of file __init__.py.

Variable Documentation

◆ _ONE_DAY

homeassistant.components.history._ONE_DAY = timedelta(days=1)
private

Definition at line 29 of file __init__.py.

◆ CONF_ORDER

string homeassistant.components.history.CONF_ORDER = "use_include_order"

Definition at line 27 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.history.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  DOMAIN: vol.All(
4  cv.deprecated(CONF_INCLUDE),
5  cv.deprecated(CONF_EXCLUDE),
6  cv.deprecated(CONF_ORDER),
7  INCLUDE_EXCLUDE_BASE_FILTER_SCHEMA.extend(
8  {vol.Optional(CONF_ORDER, default=False): cv.boolean}
9  ),
10  )
11  },
12  extra=vol.ALLOW_EXTRA,
13 )

Definition at line 31 of file __init__.py.