core/tests/util
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
..
yaml Fix failure to raise on bad YAML syntax from include files (#75510) 2022-07-20 19:25:17 +02:00
__init__.py
test_aiohttp.py Allow sending webhooks via WS connection (#62725) 2022-01-07 10:41:36 -08:00
test_async.py Custom component -> Custom integration (#75404) 2022-07-18 22:10:22 +02:00
test_color.py Use Kelvin as the preferred color temperature unit (#79591) 2022-10-06 12:22:39 +02:00
test_distance.py Deprecate conversion utilities (#78957) 2022-09-28 19:39:44 +02:00
test_dt.py Add template as_timedelta (#71801) 2022-05-23 19:32:22 +02:00
test_executor.py
test_file.py Use atomicwrites for mission critical core files (#59606) 2021-11-15 11:19:31 +01:00
test_init.py Fix flaky datetime test (#68524) 2022-03-23 09:30:01 +01:00
test_json.py Use default encoder when saving storage (#75319) 2022-07-17 14:25:19 +02:00
test_location.py Update whoami URL (#67793) 2022-03-07 11:11:25 +01:00
test_logging.py
test_network.py Add is_host_valid util (#76589) 2022-09-11 11:12:04 -05:00
test_package.py Remove pip --prefix workaround (#74922) 2022-07-11 11:33:28 +02:00
test_percentage.py
test_pressure.py Improve precision in pressure conversion (#79362) 2022-10-06 12:48:31 +02:00
test_process.py
test_read_only_dict.py Protect state.as_dict from mutation (#65693) 2022-02-04 14:45:25 -08:00
test_speed.py Deprecate conversion utilities (#78957) 2022-09-28 19:39:44 +02:00
test_temperature.py Deprecate conversion utilities (#78957) 2022-09-28 19:39:44 +02:00
test_thread.py
test_timeout.py
test_ulid.py Use ULID short format for context ids (#71119) 2022-05-01 21:44:54 -07:00
test_unit_conversion.py Adjust precipitation units (#79780) 2022-10-19 14:35:49 +02:00
test_unit_system.py Add suggested_unit_of_measurement attribute to sensors (#80638) 2022-10-24 16:08:02 +02:00
test_uuid.py
test_variance.py Add PrusaLink integration (#77429) 2022-08-29 20:45:27 -04:00
test_volume.py Deprecate conversion utilities (#78957) 2022-09-28 19:39:44 +02:00