core/homeassistant/components/sensor
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
..
__init__.py
const.py Add calories to energy sensor device class (#122796) 2024-09-10 12:22:15 +02:00
device_condition.py
device_trigger.py
helpers.py
icons.json
manifest.json
recorder.py Small cleanup to normalize states (#124614) 2024-08-27 11:17:34 +02:00
significant_change.py
strings.json
websocket_api.py