core/homeassistant
Erik Montnemery 086a6460ef
Allow customizing sensor state precision ()
* 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
..
auth Update Optional typing (1) [Py310] () 2023-01-23 09:56:10 +01:00
backports
brands Add EufyLife Bluetooth integration () 2023-01-16 18:29:50 -10:00
components Allow customizing sensor state precision () 2023-01-25 08:55:46 +01:00
generated ReadYourMeter Pro integration () 2023-01-24 22:41:33 +02:00
helpers Use intent responses from home-assistant-intents () 2023-01-23 22:38:41 -05:00
scripts Stricter pylint message control () 2023-01-20 13:47:55 +01:00
util Update Union typing (4) [Py310] () 2023-01-23 09:04:40 +01:00
__init__.py
__main__.py Stricter pylint message control () 2023-01-20 13:47:55 +01:00
block_async_io.py Core code styling improvements () 2023-01-15 23:00:51 +01:00
bootstrap.py Stricter pylint message control () 2023-01-20 13:47:55 +01:00
config.py Enable T20 (flake8-print) to ban use of print statements () 2023-01-24 14:24:21 +01:00
config_entries.py Add missing config flow abort strings () 2023-01-24 08:59:32 +02:00
const.py Drop Python 3.9 support () 2023-01-22 20:40:33 +01:00
core.py Update Optional typing (1) [Py310] () 2023-01-23 09:56:10 +01:00
data_entry_flow.py Remove config entry specifics from FlowManager () 2023-01-17 15:26:17 +01:00
exceptions.py
loader.py Stricter pylint message control () 2023-01-20 13:47:55 +01:00
package_constraints.txt Use intent responses from home-assistant-intents () 2023-01-23 22:38:41 -05:00
requirements.py Core code styling improvements () 2023-01-15 23:00:51 +01:00
runner.py Stricter pylint message control () 2023-01-20 13:47:55 +01:00
setup.py Only wait for import flows to initialize at setup () 2023-01-18 10:44:18 +01:00
strings.json Add a timeout during OAuth token exchange and additional debug logging () 2023-01-16 19:52:43 +01:00