Update Modbus sensor docs for HA PR #25672 (#10043)

Added note about possible floating point conversion related precision
loss when dealing with large values and floating point scale and offset
parameters.
This commit is contained in:
Tomi Lehto 2019-08-10 09:49:51 +03:00 committed by Franck Nijhof
parent 10c3af1838
commit cc180eaf58

View File

@ -111,6 +111,12 @@ registers:
It's possible to change the default 30 seconds scan interval for the sensor updates as shown in the [Platform options](/docs/configuration/platform_options/#scan-interval) documentation.
<div class='note'>
If you specify scale or offset as floating point values, double precision floating point arithmetic will be used to calculate final value. This can cause loss of precision for values that are larger than 2^53.
</div>
### Full example
Example a temperature sensor with a 10 seconds scan interval: