GitHub Action
1c7800c224
[ci skip] Translation update
2022-10-30 00:32:36 +00:00
GitHub Action
4b5de420ed
[ci skip] Translation update
2022-10-29 00:24:41 +00:00
GitHub Action
f399385147
[ci skip] Translation update
2022-10-28 00:30:47 +00:00
Erik Montnemery
a4310d2085
Allow integrations to drop custom unit conversion ( #81005 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-10-26 15:11:28 -04:00
GitHub Action
d0ff6582e6
[ci skip] Translation update
2022-10-26 00:29:57 +00:00
epenet
cc46564488
Add wind_speed sensor device class ( #79789 )
2022-10-25 17:21:44 +02:00
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
6b1f503a79
Allow gas units to be overriden ( #80884 )
2022-10-25 09:53:28 +02:00
Erik Montnemery
3d3349240f
Don't trigger statistics issues when sensor units are equivalent ( #80099 )
2022-10-25 09:50:01 +02:00
GitHub Action
9b331abe91
[ci skip] Translation update
2022-10-25 00:39:01 +00:00
epenet
613ea28b0e
Add new WATER device class ( #80886 )
2022-10-24 21:06:35 +02:00
Erik Montnemery
6979cd95b0
Add suggested_unit_of_measurement attribute to sensors ( #80638 )
...
* Add suggested_unit_of_measurement attribute to sensors
* Lazy calculation of initial entity options
* Add type alias for entity options
* Small tweak
* Add tests
* Store suggested_unit_of_measurement in its own option key
* Adapt to renaming of IMPERIAL_SYSTEM
* Fix rebase mistakes
* Apply suggestions from code review
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-10-24 16:08:02 +02:00
epenet
05ef02bff6
Add precipitation_intensity sensor device class ( #79779 )
2022-10-19 16:04:11 +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
9680cd267f
Cleanup sensor private attributes ( #80463 )
2022-10-17 13:17:51 +02:00
Erik Montnemery
577f7904b5
Minor improvements of recorder typing ( #80165 )
...
* Minor improvements of recorder typing
* Only allow specifying statistic_ids as lists
2022-10-12 14:59:10 +02:00
Erik Montnemery
a391b8dd9d
Support correcting sensor volume unit ( #80081 )
2022-10-11 13:51:28 +02:00
Erik Montnemery
c52b900bfe
Minor cleanup of sensor statistics ( #80082 )
2022-10-11 12:24:52 +02:00
Erik Montnemery
69d935b7bd
Teach long term statistics that unit 'rpm' is same as 'RPM' ( #80012 )
...
* Teach long term statistics that unit 'rpm' is same as 'RPM'
* Add tests
2022-10-11 10:32:01 +02:00
epenet
1744b5fa0a
Add docstring to Sensor enums ( #79983 )
...
* Add docstring to Sensor enums
* Adjust MONETARY docstring
2022-10-10 12:38:10 +02:00
GitHub Action
f58e1513e2
[ci skip] Translation update
2022-10-08 00:29:46 +00:00
Erik Montnemery
aa5575ba65
Only validate sensors in sensor.recorder.validate_statistics ( #79749 )
2022-10-06 21:17:46 +02:00
Erik Montnemery
0a59d37e62
Correct how unit used for statistics is determined ( #79725 )
2022-10-06 14:01:54 -04:00
GitHub Action
558b327928
[ci skip] Translation update
2022-10-06 00:31:54 +00:00
GitHub Action
8d28da83ca
[ci skip] Translation update
2022-10-05 00:36:50 +00:00
Franck Nijhof
2b27cfdabb
Set system & entity integration types ( #79593 )
2022-10-04 10:36:42 -04:00
Erik Montnemery
e93deaa8aa
Simplify long term statistics by always supporting unit conversion ( #79557 )
2022-10-03 21:50:05 -04:00
GitHub Action
7eb101b0c7
[ci skip] Translation update
2022-10-04 00:37:13 +00:00
Erik Montnemery
a2e3978d53
Don't normalize units of long term statistics ( #79320 )
...
* Don't normalize units of long term statistics
* Update statistics.py
2022-10-03 21:42:44 +02:00
GitHub Action
12358f2446
[ci skip] Translation update
2022-10-03 00:31:05 +00:00
GitHub Action
13c8d22baf
[ci skip] Translation update
2022-10-02 00:37:00 +00:00
Erik Montnemery
2de273500e
Remove state_unit_of_measurement from metadata DB table ( #79370 )
...
* Remove state_unit_of_measurement from metadata DB table
* Adjust test
2022-10-01 18:55:00 +02:00
GitHub Action
bd5ec4e198
[ci skip] Translation update
2022-10-01 00:40:08 +00:00
GitHub Action
21b078eeb7
[ci skip] Translation update
2022-09-30 00:42:29 +00:00
GitHub Action
63f2c4ab98
[ci skip] Translation update
2022-09-29 00:36:54 +00:00
epenet
f76eeaeea1
Adjust docstring for SensorDeviceClass.WEIGHT ( #79201 )
2022-09-28 09:03:18 -04: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
Erik Montnemery
9084beda32
Keep storing statistics for sensors which change device class ( #79155 )
2022-09-27 14:33:28 -04:00
epenet
12e4d18038
Add volume to SensorDeviceClass ( #77960 )
...
* Add volume to SensorDeviceClass
* Adjust recorder
* Adjust tests
* Adjust sensor UNIT_CONVERTERS
* Adjust recorder
* Update strings.json
2022-09-27 19:37:52 +02:00
epenet
7c448416e1
Add speed to SensorDeviceClass ( #77953 )
...
* Add speed to SensorDeviceClass
* Adjust recorder
* Adjust tests
* Adjust sensor UNIT_CONVERTERS
* Add tests
* Add websocket tests
* Update strings.json
2022-09-27 17:19:34 +01:00
epenet
bfcc18e5b8
Add distance to SensorDeviceClass ( #77951 )
...
* Add distance to SensorDeviceClass
* Adjust recorder
* Adjust tests
* Adjust recorder
* Update __init__.py
* Update test_websocket_api.py
* Update test_websocket_api.py
* Update test_websocket_api.py
* Update strings.json
* Fix tests
* Adjust docstring
2022-09-27 15:34:00 +01:00
Erik Montnemery
5bcef1c7ce
Indicate in statistics issues when units can be converted ( #79121 )
2022-09-27 13:51:38 +02:00
epenet
c1bc26b413
Finish migration of recorder to unit conversion ( #78985 )
2022-09-25 21:14:18 -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
epenet
6002377d4f
Convert UnitConverter protocol to a class ( #78934 )
...
* Convert UnitConverter protocl to a class
* Remove logic change
* Use TypeVar
* Remove NORMALIZED_UNIT from pressure
* Reduce size of PR
* Reduce some more
* Once more
* Once more
* Remove DEVICE_CLASS
2022-09-22 14:15:22 +02:00