Always round down for Mazda odometer entity (#76500)
This commit is contained in:
parent
9555df88c8
commit
58ac3eee3b
2 changed files with 3 additions and 2 deletions
|
@ -116,7 +116,8 @@ def _fuel_distance_remaining_value(data, unit_system):
|
|||
|
||||
def _odometer_value(data, unit_system):
|
||||
"""Get the odometer value."""
|
||||
return round(unit_system.length(data["status"]["odometerKm"], LENGTH_KILOMETERS))
|
||||
# In order to match the behavior of the Mazda mobile app, we always round down
|
||||
return int(unit_system.length(data["status"]["odometerKm"], LENGTH_KILOMETERS))
|
||||
|
||||
|
||||
def _front_left_tire_pressure_value(data, unit_system):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue