core/tests/testing_config/custom_components/test
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
__init__.py
alarm_control_panel.py
binary_sensor.py
button.py Add Button entity component platform (#57642) 2021-11-04 16:50:43 +01:00
cover.py Minor cleanup of test integration's cover platform (#72598) 2022-05-27 17:53:49 +03:00
device_tracker.py Make device tracker entities work better (#63328) 2022-01-04 23:16:43 -08:00
image_processing.py
light.py Correct min/max mireds for lights which use K for color temp (#79998) 2022-10-10 16:45:38 +03:00
lock.py
manifest.json
number.py Support restoring NumberEntity native_value (#73475) 2022-06-14 10:56:27 -07:00
remote.py
select.py
sensor.py Add suggested_unit_of_measurement attribute to sensors (#80638) 2022-10-24 16:08:02 +02:00
switch.py
update.py Rename current_version to installed_version in Update platform (#69093) 2022-04-01 20:11:17 +02:00
weather.py Weather unit conversion (#73441) 2022-06-23 10:48:30 +02:00