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
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
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