Skip to content

Commit

Permalink
round odometer
Browse files Browse the repository at this point in the history
  • Loading branch information
wtadler committed Dec 19, 2024
1 parent d844c4a commit 9fd64fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/leafspy/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def _transform_hx(x):
native_unit_of_measurement=UnitOfLength.KILOMETERS,
device_class=SensorDeviceClass.DISTANCE,
state_class=SensorStateClass.TOTAL_INCREASING,
transform_fn=lambda x: _safe_round(x, 1),
transform_fn=lambda x: _safe_round(x, 0),
icon="mdi:counter",
),
LeafSpySensorDescription(
Expand Down

0 comments on commit 9fd64fd

Please sign in to comment.