Skip to content

Commit

Permalink
Improve precision documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
make-all committed Jan 14, 2025
1 parent 85f3c17 commit a286d4f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions custom_components/tuya_local/devices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,14 @@ require it. Use this only where needed, and generally only on read-only dps.

*Optional, default None.*

For integer dps that are sensor values, the suggested precision for
display in Home Assistant can be specified. If unspecified, the Home
Assistant will use the native precision, which is calculated based on
the scale of the dp so as to provide distinct values with as few
decimal places as possible. For example a scale of 3 will result in
one decimal place by default, (values displayed as x.3, x.7 rather
than x.33333333 and x.666666) but you could override that to 2 or 0
with by specifying the precision explicitly.
The number of decimals which should be used in the sensor's state when
it's displayed. If unspecified, the Home Assistant will use the native
precision, which is calculated based on the scale of the dp so as to
provide distinct values with as few decimal places as possible. For
example a scale of 3 will result in one decimal place by default,
(values displayed as x.3, x.7 rather than x.33333333 and x.666666) but
you could override that to 2 or 0 by specifying the precision
explicitly.

### `mapping`

Expand Down

0 comments on commit a286d4f

Please sign in to comment.