hass-core/homeassistant/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
..
translations [ci skip] Translation update 2022-10-08 00:29:46 +00:00
__init__.py Add suggested_unit_of_measurement attribute to sensors (#80638) 2022-10-24 16:08:02 +02:00
const.py
device_condition.py Add precipitation_intensity sensor device class (#79779) 2022-10-19 16:04:11 +02:00
device_trigger.py Add precipitation_intensity sensor device class (#79779) 2022-10-19 16:04:11 +02:00
group.py
helpers.py
manifest.json Set system & entity integration types (#79593) 2022-10-04 10:36:42 -04:00
recorder.py Minor improvements of recorder typing (#80165) 2022-10-12 14:59:10 +02:00
significant_change.py Guard invalid data sensor significant change (#74369) 2022-07-03 22:03:13 -07:00
strings.json Add new weight device class (#79185) 2022-09-28 12:13:49 +02:00