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

Functions

bool entities_may_have_state_changes_after (HomeAssistant hass, Iterable entity_ids, dt start_time, bool no_attributes)
 
bool has_states_before (HomeAssistant hass, dt run_time)
 

Detailed Description

Helpers for the history integration.

Function Documentation

◆ entities_may_have_state_changes_after()

bool homeassistant.components.history.helpers.entities_may_have_state_changes_after ( HomeAssistant  hass,
Iterable  entity_ids,
dt  start_time,
bool   no_attributes 
)
Check the state machine to see if entities have changed since start time.

Definition at line 12 of file helpers.py.

◆ has_states_before()

bool homeassistant.components.history.helpers.has_states_before ( HomeAssistant  hass,
dt  run_time 
)
Check if the recorder has states as old or older than run_time.

Returns True if there may be such states.

Definition at line 28 of file helpers.py.