core/homeassistant/components/sensor
Erik Montnemery ba284c0d27
Add sensor state_class property (#50063)
* Add sensor state_class property

* STATE_CLASS_LATEST -> STATE_CLASS_MEASUREMENT

* Export sensor.state_class in capability_attributes

* Add STATE_CLASS_UNKNOWN

* Fix typing

* Update tests

* STATE_CLASS_UNKNOWN -> STATE_CLASS_OTHER

* Update homeassistant/components/sensor/__init__.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Remove STATE_CLASS_OTHER

* Update tests

* Revert test changes

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-05-07 23:04:00 +02:00
..
translations [ci skip] Translation update 2021-04-14 00:03:17 +00:00
__init__.py Add sensor state_class property (#50063) 2021-05-07 23:04:00 +02:00
device_condition.py Remove device class timestamp from device condition and trigger (#48431) 2021-04-01 15:05:10 +02:00
device_trigger.py Remove device class timestamp from device condition and trigger (#48431) 2021-04-01 15:05:10 +02:00
group.py
manifest.json
significant_change.py
strings.json Remove device class timestamp from device condition and trigger (#48431) 2021-04-01 15:05:10 +02:00