core/homeassistant/components/sensor
Erik Montnemery 029873a088
Add support for total and total_increasing sensor state classes (#54523)
* Add support for amount and meter sensor state classes

* Ignore last_reset for STATE_CLASS_METER sensors

* Update tests

* Rename STATE_CLASS_METER to STATE_CLASS_AMOUNT_INCREASING

* Rename STATE_CLASS_AMOUNT to STATE_CLASS_TOTAL

* Fix typo

* Log warning if last_reset set together with state_class measurement

* Fix warning message
2021-08-13 12:35:23 +02:00
..
translations [ci skip] Translation update 2021-08-13 00:17:12 +00:00
__init__.py Add support for total and total_increasing sensor state classes (#54523) 2021-08-13 12:35:23 +02:00
device_condition.py Add device class `gas` and enable statistics for it (#54110) 2021-08-11 09:58:19 -07:00
device_trigger.py Add device class `gas` and enable statistics for it (#54110) 2021-08-11 09:58:19 -07:00
group.py
manifest.json
recorder.py Add support for total and total_increasing sensor state classes (#54523) 2021-08-13 12:35:23 +02:00
significant_change.py
strings.json Add device class `gas` and enable statistics for it (#54110) 2021-08-11 09:58:19 -07:00