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
|
@ -63,7 +63,7 @@ async def test_sensors(hass):
|
|||
assert state.attributes.get(ATTR_ICON) == "mdi:speedometer"
|
||||
assert state.attributes.get(ATTR_UNIT_OF_MEASUREMENT) == LENGTH_KILOMETERS
|
||||
assert state.attributes.get(ATTR_STATE_CLASS) == SensorStateClass.TOTAL_INCREASING
|
||||
assert state.state == "2796"
|
||||
assert state.state == "2795"
|
||||
entry = entity_registry.async_get("sensor.my_mazda3_odometer")
|
||||
assert entry
|
||||
assert entry.unique_id == "JM000000000000000_odometer"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue