core/homeassistant/util
Sergey Dudanov dcd7830a35
Add calories to energy sensor device class (#122796)
* added calories to energy class

* changes

* temporarily solving the problem with conversion accuracy

* add tests

* added calories to energy class

* changes

* add tests

* Update homeassistant/util/unit_conversion.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update homeassistant/util/unit_conversion.py

Co-authored-by: Robert Resch <robert@resch.dev>

* apply suggestions

* Update homeassistant/util/unit_conversion.py

---------

Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-09-10 12:22:15 +02:00
..
yaml Tweak exception message in yaml loader (#124841) 2024-08-29 11:31:19 +02:00
__init__.py Cleanup unnecessary returns (#121652) 2024-07-10 15:11:56 +02:00
aiohttp.py Replace pylint protected-access with Ruff SLF001 (#115735) 2024-05-06 20:33:26 +02:00
async_.py Use BaseEventLoop._thread_id instead of a custom attribute (#124054) 2024-08-17 10:59:39 +02:00
collection.py Move recorder chunk utils to shared collection utils (#118065) 2024-05-24 12:49:39 -10:00
color.py Add Ruff refurb rules (#121701) 2024-07-10 21:47:40 +02:00
decorator.py Use PEP 695 for class annotations (4) (#117778) 2024-05-20 10:44:52 +02:00
dt.py Fix blocking I/O in the event loop when loading timezones (#117721) 2024-05-20 11:06:03 +02:00
enum.py Use PEP 695 misc (2) (#117814) 2024-05-21 09:45:57 +02:00
event_type.py Enable Ruff SLOT rules (#115043) 2024-04-09 18:57:27 -10:00
event_type.pyi Add improved typing for event fire and listen methods (#114906) 2024-04-07 13:28:24 -10:00
executor.py Shutdown database engine before waiting for executor shutdown (#117339) 2024-08-22 16:47:22 +02:00
file.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
frozen_dataclass_compat.py Update mypy-dev to 1.12.0a3 (#124939) 2024-08-31 19:34:41 +02:00
hass_dict.py Use PEP 695 for hass_dict annotations (#117779) 2024-05-20 10:46:50 +02:00
hass_dict.pyi Use PEP 695 for hass_dict annotations (#117779) 2024-05-20 10:46:50 +02:00
json.py Cleanup deprecated json utils (#121069) 2024-07-03 15:57:32 +02:00
language.py Fix raise-within-try in language util (#123354) 2024-08-08 18:51:19 +02:00
limited_size_dict.py Use PEP 695 for class annotations (4) (#117778) 2024-05-20 10:44:52 +02:00
location.py Use aiohttp.ClientTimeout for timeout (#122458) 2024-07-23 08:20:04 -05:00
logging.py Use PEP 695 for function annotations (3) (#117660) 2024-05-18 11:43:32 +02:00
loop.py Downgrade logging previously reported asyncio block to debug (#120942) 2024-07-01 18:26:20 +02:00
network.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
package.py Enable Ruff RET504 (#114528) 2024-04-06 11:07:37 +02:00
percentage.py Use PEP 695 for function annotations (3) (#117660) 2024-05-18 11:43:32 +02:00
pil.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
process.py
read_only_dict.py Add (deep)copy support to read only dict (#118204) 2024-05-26 23:05:45 -04:00
scaling.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
signal_type.py Fix performance regression with SignalType (#117920) 2024-05-22 13:58:37 +02:00
signal_type.pyi Fix performance regression with SignalType (#117920) 2024-05-22 13:58:37 +02:00
ssl.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
thread.py Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
timeout.py Fix bug in timeout util related to multiple global freezes (#122466) 2024-07-29 10:12:18 +02:00
ulid.py Update ulid-transform to 0.10.1 (#121321) 2024-07-05 14:07:39 -05:00
unit_conversion.py Add calories to energy sensor device class (#122796) 2024-09-10 12:22:15 +02:00
unit_system.py Replace linear search in unit_system with dict lookup (#125485) 2024-09-07 23:49:44 -04:00
uuid.py Bump ruff to 0.4.2 (#116201) 2024-04-26 08:48:32 +02:00
variance.py Use PEP 695 for function annotations (3) (#117660) 2024-05-18 11:43:32 +02:00