core/tests
Tomi Lehto b79f1336be Fix 64-bit modbus sensor register reads (#25672)
* Fix 64-bit modbus sensor register reads

When reading four 16-bit modbus registers as a sensor value,
slave output is stored first as 64-bit integer, but before returning
that value is converted to double precision floating point. This
causes rounding errors for integer values bigger than 2^53.

After this change floating point conversion is done only if user
has configured scaling or offset using floating points.

* Formatting

* Review fixes
2019-08-09 17:03:12 -07:00
..
auth Black 2019-07-31 12:25:30 -07:00
components Fix 64-bit modbus sensor register reads (#25672) 2019-08-09 17:03:12 -07:00
fixtures Add ring light platform (#25733) 2019-08-06 14:55:54 -07:00
helpers Add arcus trigonometry functions to templates (#25510) 2019-08-09 11:16:47 -07:00
mock Black 2019-07-31 12:25:30 -07:00
resources Revised package util tests 2016-01-30 14:08:32 -05:00
scripts Integration requirement check refactor (#25626) 2019-08-07 15:35:50 -07:00
test_util Black 2019-07-31 12:25:30 -07:00
testing_config Black 2019-07-31 12:25:30 -07:00
util Black 2019-07-31 12:25:30 -07:00
__init__.py async HTTP component (#3914) 2016-10-23 23:48:01 -07:00
common.py Black 2019-07-31 12:25:30 -07:00
conftest.py Black 2019-07-31 12:25:30 -07:00
test_bootstrap.py Black 2019-07-31 12:25:30 -07:00
test_config.py Black 2019-07-31 12:25:30 -07:00
test_config_entries.py Black 2019-07-31 12:25:30 -07:00
test_core.py Black 2019-07-31 12:25:30 -07:00
test_data_entry_flow.py Black 2019-07-31 12:25:30 -07:00
test_loader.py Black 2019-07-31 12:25:30 -07:00
test_main.py Black 2019-07-31 12:25:30 -07:00
test_requirements.py Integration requirement check refactor (#25626) 2019-08-07 15:35:50 -07:00
test_setup.py Black 2019-07-31 12:25:30 -07:00