This website requires JavaScript.
Explore
Help
Sign in
evlli
/
hass-core
Watch
1
Star
0
Fork
You've already forked hass-core
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
ea11a30a35
hass-core
/
tests
/
components
/
modbus
/
__init__.py
2 lines
38 B
Python
Raw
Normal View
History
Unescape
Escape
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-10 03:03:12 +03:00
"""
The tests for Modbus platforms.
"""
Reference in a new issue
Copy permalink