Commit graph

3260 commits

Author SHA1 Message Date
epenet
bfcc18e5b8
Add distance to SensorDeviceClass ()
* 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 () 2022-09-27 13:51:38 +02:00
epenet
c1bc26b413
Finish migration of recorder to unit conversion () 2022-09-25 21:14:18 -04:00
epenet
ddf56baf7a
Move temperature utility to unit_conversion () 2022-09-22 18:31:50 +02:00
epenet
c8491c4404
Move volume utility to unit_conversion ()
* Move volume utility to unit_conversion

* Split tests
2022-09-22 17:49:45 +02:00
epenet
523d8d246b
Move pressure utility to unit_conversion () 2022-09-22 16:44:09 +02:00
epenet
0767cdd935
Move energy and power utilites to unit_conversion ()
* 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 ()
* 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
epenet
713fb874a8
Add NORMALISED_UNIT to UnitConverter ()
* Add NORMALISED_UNIT to UnitConverter

* Adjust statistics

* Rename
2022-09-22 08:50:08 +02:00
epenet
39315b7fe3
Introduce UnitConverter protocol ()
* Introduce ConversionUtility

* Use ConversionUtility in number

* Use ConversionUtility in sensor

* Use ConversionUtility in sensor recorder

* Add normalise to ConversionUtility

* Revert changes to recorder.py

* Reduce size of PR

* Adjust recorder statistics

* Rename variable

* Rename

* Apply suggestion

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Apply suggestion

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Apply suggestion

Co-authored-by: Erik Montnemery <erik@montnemery.com>

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-09-22 07:18:00 +02:00
epenet
ca78b1a77d
Add new energy utility ()
* Add new energy utility

* Adjust STATISTIC_UNIT_TO_VALID_UNITS
2022-09-21 19:40:40 +02:00
epenet
d7382aadfe
Add new power utility ()
* Add power utility

* Fix tests
2022-09-21 14:48:38 +02:00
epenet
64988521bb
Make use of generic EntityComponent (part 2) () 2022-09-17 18:18:53 +02:00
GitHub Action
ec258410c5 [ci skip] Translation update 2022-09-16 00:29:29 +00:00
Erik Montnemery
dd20a7ea62
Display statistics in the source's unit () 2022-09-15 12:01:24 -04:00
GitHub Action
955f3b7083 [ci skip] Translation update 2022-09-13 00:29:19 +00:00
epenet
7871a517a8
Import constants from root () 2022-09-12 18:53:05 +02:00
epenet
253d355526
Remove unused mypy ignore statements () 2022-09-12 09:25:11 -04:00
GitHub Action
718d4ac6cc [ci skip] Translation update 2022-09-09 00:28:55 +00:00
GitHub Action
4f7ad27b65 [ci skip] Translation update 2022-09-07 00:27:56 +00:00
GitHub Action
5c30b33ee2 [ci skip] Translation update 2022-09-06 00:27:55 +00:00
GitHub Action
c5100d2895 [ci skip] Translation update 2022-09-05 00:31:16 +00:00
GitHub Action
6921583410 [ci skip] Translation update 2022-09-04 00:28:06 +00:00
GitHub Action
945299dfb6 [ci skip] Translation update 2022-09-03 00:24:50 +00:00
GitHub Action
ccef03f1d4 [ci skip] Translation update 2022-09-02 00:25:46 +00:00
Ernst Klamer
db4391adff
Add device class moisture () 2022-09-01 11:47:47 -04:00
Erik Montnemery
008ac8d10d
Improve statistics metadata WS API () 2022-08-31 11:30:45 +02:00
Erik Montnemery
6b9c4c7ec1
Tweak comment about humidity sensors () 2022-08-29 09:57:40 -04:00
GitHub Action
ff3fd4c29d [ci skip] Translation update 2022-08-16 00:30:51 +00:00
Marc Mueller
1ebac6c7ca
Use TriggerActionType [core, r-t] () 2022-08-15 17:40:16 +02:00
GitHub Action
bec8e544f4 [ci skip] Translation update 2022-08-14 00:25:47 +00:00
GitHub Action
7c81f790a7 [ci skip] Translation update 2022-08-12 00:23:47 +00:00
GitHub Action
519d478d61 [ci skip] Translation update 2022-08-11 00:26:23 +00:00
GitHub Action
f11fbf2989 [ci skip] Translation update 2022-08-08 00:22:41 +00:00
GitHub Action
32a2999b85 [ci skip] Translation update 2022-08-06 00:24:46 +00:00
GitHub Action
cb46441b74 [ci skip] Translation update 2022-08-05 00:28:51 +00:00
GitHub Action
81e3ef03f7 [ci skip] Translation update 2022-08-02 00:27:42 +00:00
Franck Nijhof
7adb0f0ef5
Custom component -> Custom integration () 2022-07-18 22:10:22 +02:00
GitHub Action
79a0940932 [ci skip] Translation update 2022-07-17 00:25:56 +00:00
GitHub Action
1d2e64e3dc [ci skip] Translation update 2022-07-14 00:27:41 +00:00
GitHub Action
cdaefc8fda [ci skip] Translation update 2022-07-09 00:20:23 +00:00
Paulus Schoutsen
b62c0dcb32
Guard invalid data sensor significant change () 2022-07-03 22:03:13 -07:00
Aaron Bach
981249d330
Ensure _attr_native_value type matches what SensorExtraStoredData produces () 2022-06-29 11:16:06 +02:00
Erik Montnemery
baa810aabb
Improve warnings for datetime and date sensors with invalid states () 2022-06-17 12:17:13 +02:00
GitHub Action
4005af99aa [ci skip] Translation update 2022-06-14 00:26:59 +00:00
GitHub Action
a1637e4fce [ci skip] Translation update 2022-06-12 00:25:33 +00:00
Erik Montnemery
6bf219550e
Cleanup some code in SensorEntity () 2022-06-08 22:27:40 +03:00
GitHub Action
7a0657c386 [ci skip] Translation update 2022-05-29 00:23:25 +00:00
epenet
b10ee779f9
Adjust device_automation type hints in core platforms 3/3 () 2022-05-23 16:01:40 +02:00
GitHub Action
ceb8bb4745 [ci skip] Translation update 2022-05-21 00:22:49 +00:00