Commit Graph

3240 Commits (6864f4398698b4e9e83315b913af0c3d8db59d56)

Author SHA1 Message Date
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 (#77666) 2022-09-01 11:47:47 -04:00
Erik Montnemery 008ac8d10d
Improve statistics metadata WS API (#77209) 2022-08-31 11:30:45 +02:00
Erik Montnemery 6b9c4c7ec1
Tweak comment about humidity sensors (#77482) 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] (#76807) 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 (#75404) 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 (#74369) 2022-07-03 22:03:13 -07:00
Aaron Bach 981249d330
Ensure `_attr_native_value` type matches what `SensorExtraStoredData` produces (#73970) 2022-06-29 11:16:06 +02:00
Erik Montnemery baa810aabb
Improve warnings for datetime and date sensors with invalid states (#73598) 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 (#73241) 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 (#72211) 2022-05-23 16:01:40 +02:00
GitHub Action ceb8bb4745 [ci skip] Translation update 2022-05-21 00:22:49 +00:00
epenet 50ca14538a
Cleanup deprecated async_get_registry in core (#72087) 2022-05-18 17:58:28 +02:00
Franck Nijhof 69cc6ab5f1
Clean up accessing entity_registry.async_get_registry helper via hass (#72005) 2022-05-17 16:40:45 +02:00
GitHub Action 37f81b261d [ci skip] Translation update 2022-05-16 00:24:28 +00:00
GitHub Action 348016dbbf [ci skip] Translation update 2022-04-29 00:22:21 +00:00
J. Nick Koston 791138eb8b
Add duration device class to sensor platform (#70543) 2022-04-25 09:56:42 -07:00
J. Nick Koston 3737b58e85
Avoid fetching metadata multiple times during stat compile (#70397) 2022-04-22 00:25:42 -10:00
Erik Montnemery 7b1e0e42f7
Allow device conditions and triggers for unitless sensors (#70337) 2022-04-21 09:31:15 -07:00
Diogo Gomes 03874d1b65
Correct state restoring for Utility Meter sensors (#66851)
* fix merge

* backward compatability

* add status

* increase coverage

* increase further the coverage

* adds support for Decimal in SensorExtraStoredData

* more precise

* review

* don't restore broken last_reset

* increase coverage

* address review comments

* stale

* coverage increase

* Update homeassistant/components/utility_meter/sensor.py

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

* catch corrupt files and respective tests

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-04-19 09:01:52 +02:00
J. Nick Koston 89807f0d2d
Reduce the number of queries needed to compile statistics (#69731)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-04-15 09:13:29 -07:00
J. Nick Koston 5c7c09726a
Cleanup recorder history typing (#69408) 2022-04-07 00:09:05 -10:00
epenet d0288f14f0
Add sensor DEVICE_CLASS_* to deprecated imports (#69243) 2022-04-04 15:03:28 -07:00
Erik Montnemery e830032b33
Remove deprecated temperature conversion of non temperature sensors (#69069) 2022-04-04 20:02:40 +02:00
Erik Montnemery bfa364741b
Correct misleading comment in SensorEntity 2022-04-04 17:10:17 +02:00
Erik Montnemery 87100c2517
Drop deprecated support for unit_of_measurement from sensor (#69061) 2022-04-01 08:22:19 -07:00
Erik Montnemery 91f6e58e9a
Allow customizing unit for temperature and pressure sensors (#64366)
* Allow customizing unit for temperature and pressure sensors

* pylint

* Adjust google_wifi tests

* Address review comments and add tests

* Improve rounding when scaling

* Tweak rounding

* Further tweak rounding

* Allow setting entity options with config/entity_registry/update

* Address review comments

* Tweak tests

* Load custom unit when sensor is added

* Override async_internal_added_to_hass

* Adjust tests after rebase

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

* Address review comments

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-03-30 15:43:04 +02:00
J. Nick Koston c5c34bc0d7
Typing and code quality for recorder history (#68647) 2022-03-24 17:58:38 -07:00
Erik Montnemery 61cc8e32f3
Include has_mean + has_sum in statistics metadata WS response (#68546)
* Include has_mean + has_sum in statistics metadata WS response

* Don't include has_mean/has_sum in history/list_statistic_ids

* Adjust tests

* Do include has_mean/has_sum in history/list_statistic_ids
2022-03-24 10:12:01 +01:00
Pawel bcb8c7ec3c
Add API endpoint get_statistics_metadata (#68471)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-21 21:14:47 -07:00
GitHub Action c64b4d997b [ci skip] Translation update 2022-03-13 00:18:58 +00:00
GitHub Action dc31f420ed [ci skip] Translation update 2022-03-12 00:17:47 +00:00