Go to the source code of this file.
Namespaces | |
| homeassistant.components.history_stats.helpers | |
Functions | |
| tuple[datetime.datetime, datetime.datetime] | homeassistant.components.history_stats.helpers.async_calculate_period (datetime.timedelta|None duration, Template|None start_template, Template|None end_template) |
| float | homeassistant.components.history_stats.helpers.floored_timestamp (datetime.datetime incoming_dt) |
| float | homeassistant.components.history_stats.helpers.pretty_ratio (float value, tuple[datetime.datetime, datetime.datetime] period) |
Variables | |
| homeassistant.components.history_stats.helpers._LOGGER = logging.getLogger(__name__) | |
| string | homeassistant.components.history_stats.helpers.DURATION_END = "end" |
| string | homeassistant.components.history_stats.helpers.DURATION_START = "start" |