1
mirror of https://github.com/home-assistant/core synced 2024-10-01 05:30:36 +02:00
ha-core/homeassistant/util
J. Nick Koston ea356ad260
Optimize fetching weekly/monthly/yearly statistics (#87747)
* Optimize fetching statistics

* speed up

* avoid double groupby

* avoid another loop

* tweak flow

* fixes

* tweak

* avoid a new dt object in the cache for week/month

* avoid a new dt object in the cache for week/month
2023-02-09 21:22:32 -05:00
..
yaml Update Union typing (4) [Py310] (#86427) 2023-01-23 09:04:40 +01:00
__init__.py Stricter pylint message control (#86154) 2023-01-20 13:47:55 +01:00
aiohttp.py Enable Ruff TRY004 (#86811) 2023-01-30 14:06:52 +01:00
async_.py Import ParamSpec from typing [Py310] (#86413) 2023-01-23 07:28:43 +01:00
color.py Code styling tweaks to core utils & YAML loader (#85433) 2023-01-08 22:01:55 -08:00
decorator.py
distance.py String formatting and max line length - Part 7 (#84532) 2022-12-27 11:18:56 +01:00
dt.py Optimize fetching weekly/monthly/yearly statistics (#87747) 2023-02-09 21:22:32 -05:00
enum.py Add enum util (#87082) 2023-02-01 15:00:27 +01:00
executor.py
file.py Use os.path.dirname() for getting the directory name of a path (#81504) 2022-11-14 15:21:35 +01:00
json.py Code styling tweaks to core utils & YAML loader (#85433) 2023-01-08 22:01:55 -08:00
location.py Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
logging.py Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
network.py Add is_host_valid util (#76589) 2022-09-11 11:12:04 -05:00
package.py Code styling tweaks to core utils & YAML loader (#85433) 2023-01-08 22:01:55 -08:00
percentage.py Fix an extra quote typo in the percentage util (#87161) 2023-02-02 19:59:08 -06:00
pil.py Code styling tweaks to core utils & YAML loader (#85433) 2023-01-08 22:01:55 -08:00
pressure.py Add unitless unit converter (#85694) 2023-01-12 09:20:00 +01:00
process.py
read_only_dict.py
speed.py Add unitless unit converter (#85694) 2023-01-12 09:20:00 +01:00
ssl.py Code styling tweaks to core utils & YAML loader (#85433) 2023-01-08 22:01:55 -08:00
temperature.py String formatting and max line length - Part 7 (#84532) 2022-12-27 11:18:56 +01:00
thread.py
timeout.py Add Self typing (4) [mypy 1.0] (#87601) 2023-02-06 22:30:22 -06:00
ulid.py
unit_conversion.py Add Mega Joule as valid unit of energy (#86055) 2023-01-25 14:13:42 +01:00
unit_system.py Update unit system unit conversions (#87632) 2023-02-08 10:52:54 +01:00
uuid.py
variance.py Import ParamSpec from typing [Py310] (#86413) 2023-01-23 07:28:43 +01:00
volume.py String formatting and max line length - Part 7 (#84532) 2022-12-27 11:18:56 +01:00