epenet
7838bb3ebe
Replace new PRECIPITATION_INTENSITY with enum ( #80653 )
2022-10-25 16:45:45 +02:00
Erik Montnemery
727eccfec4
Add GJ as supported unit for energy sensors ( #80870 )
...
* Add GJ as supported unit for energy sensors
* Update homeassistant/const.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-10-25 16:43:00 +02:00
epenet
9afb4c6c9e
Adjust precipitation units ( #79780 )
...
* Adjust precipitation units
* Use PRECIPITATION_INTENSITY
* Revert isy994
* Adjust SensorDeviceClass docstring
* Adjust comment
2022-10-19 14:35:49 +02:00
epenet
aa0bb9c3d2
Improve precision in pressure conversion ( #79362 )
...
* Improve precision in pressure conversion
* Use _STANDARD_GRAVITY
* Add again pytest.approx
2022-10-06 12:48:31 +02:00
epenet
825f9502ad
Align temperature conversion with other converters ( #79521 )
...
* Align temperature conversion with other converters
* Add comments and docstring
* Align tests
2022-10-03 10:09:55 +02:00
epenet
5438552d4a
Cleanup unit conversion ( #79197 )
...
* Move UNIT_RATIO to BaseUnitConverter
* Make UNIT_CONVERSION private
* Remove STATISTIC_UNIT_TO_UNIT_CLASS constant
* Cleanup websocket_api
* Imrpove valid_units check
2022-09-28 13:49:46 +02:00
epenet
5389ff3253
Add new weight device class ( #79185 )
2022-09-28 12:13:49 +02:00
epenet
c96c5bed7d
Remove argument validation in Unit Converter ( #79107 )
...
* Remove argument validation in Unit Converter
* Use HomeAssistantError
* Adjust tests
* Improve coverage
2022-09-28 10:58:04 +02:00
epenet
4200778eaf
Move distance and speed util to unit_conversion ( #78967 )
2022-09-23 08:23:59 -04:00
epenet
ddf56baf7a
Move temperature utility to unit_conversion ( #78960 )
2022-09-22 18:31:50 +02:00
epenet
c8491c4404
Move volume utility to unit_conversion ( #78955 )
...
* Move volume utility to unit_conversion
* Split tests
2022-09-22 17:49:45 +02:00
epenet
523d8d246b
Move pressure utility to unit_conversion ( #78953 )
2022-09-22 16:44:09 +02:00
epenet
0767cdd935
Move energy and power utilites to unit_conversion ( #78950 )
...
* Move energy and power utilites to unit_conversion
* Move tests
2022-09-22 15:39:49 +02:00