hass-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 Remove HomeAssistantType alias from entity components - Part 2 (#48468) 2021-03-29 13:24:56 -10:00
manifest.json Initial draft of statistics (#49852) 2021-05-16 10:23:37 -07:00
recorder.py Add support for total and total_increasing sensor state classes (#54523) 2021-08-13 12:35:23 +02:00
significant_change.py Update typing 12 (#48073) 2021-03-18 14:31:38 +01:00
strings.json Add device class gas and enable statistics for it (#54110) 2021-08-11 09:58:19 -07:00