core/tests/testing_config/custom_components
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
..
hue
switch Load requirements and dependencies from manifests. Fallback to current `REQUIREMENTS` and `DEPENDENCIES` (#22717) 2019-04-11 01:26:36 -07:00
test Add suggested_unit_of_measurement attribute to sensors (#80638) 2022-10-24 16:08:02 +02:00
test_bad_version Prettify json (tests) (#68888) 2022-03-30 11:12:58 +02:00
test_embedded Block custom integrations with missing or invalid version (#49916) 2021-05-17 15:48:41 +02:00
test_no_version Prettify json (tests) (#68888) 2022-03-30 11:12:58 +02:00
test_package Block custom integrations with missing or invalid version (#49916) 2021-05-17 15:48:41 +02:00
__init__.py Load requirements and dependencies from manifests. Fallback to current `REQUIREMENTS` and `DEPENDENCIES` (#22717) 2019-04-11 01:26:36 -07:00
test_standalone.py Black 2019-07-31 12:25:30 -07:00