core/tests/testing_config/custom_components
Erik Montnemery 086a6460ef
Allow customizing sensor state precision (#86074)
* Allow customizing sensor precision

* Don't convert integer strings to floats

* Tweak converting sensor state to number

* Drop default rounding to 2 decimals

* Adjust test

* Tweak rounding, improve test coverage

* Don't convert to a number if not necessary

* Raise if native_precision is set and state is not numeric

* Address review comments

* Address comments, simplify

* Don't call  property twice

* Make exception more helpful
2023-01-25 08:55:46 +01: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 Allow customizing sensor state precision (#86074) 2023-01-25 08:55:46 +01:00
test_bad_version Prettify json (tests) (#68888) 2022-03-30 11:12:58 +02:00
test_embedded Configure autoflake for pre-commit (#82414) 2022-11-22 08:10:36 +01: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