core/tests/testing_config
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
..
blueprints Prevent deleting blueprints which are in use (#78444) 2022-09-14 16:47:08 +02:00
custom_components Allow customizing sensor state precision (#86074) 2023-01-25 08:55:46 +01:00
custom_sentences/en Load custom sentences from config directory (#85558) 2023-01-09 16:48:59 -06:00
media Quote media_source paths (#49054) 2021-04-12 18:32:12 +02:00
notify Rewrite smtp Unittest Tests To Pytest Style (#41720) 2020-10-16 13:55:12 +02:00
.remember_the_milk.conf
__init__.py
kira_codes.yaml