hass-core/tests/components/sensor
Erik Montnemery 6979cd95b0
Add suggested_unit_of_measurement attribute to sensors (#80638)
* Add suggested_unit_of_measurement attribute to sensors

* Lazy calculation of initial entity options

* Add type alias for entity options

* Small tweak

* Add tests

* Store suggested_unit_of_measurement in its own option key

* Adapt to renaming of IMPERIAL_SYSTEM

* Fix rebase mistakes

* Apply suggestions from code review

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-10-24 16:08:02 +02:00
..
__init__.py Fix PEP257 issues 2016-03-09 10:25:50 +01:00
test_device_condition.py Add device class moisture (#77666) 2022-09-01 11:47:47 -04:00
test_device_trigger.py Add device class moisture (#77666) 2022-09-01 11:47:47 -04:00
test_helpers.py Correct rest sensor configured to generate timestamps (#61429) 2021-12-10 09:59:27 -08:00
test_init.py Add suggested_unit_of_measurement attribute to sensors (#80638) 2022-10-24 16:08:02 +02:00
test_recorder.py Use US_CUSTOMARY_SYSTEM in tests (#80658) 2022-10-20 15:42:23 +02:00
test_significant_change.py Guard invalid data sensor significant change (#74369) 2022-07-03 22:03:13 -07:00