mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 13:30:43 +00:00
Refactor support for integrations to drop custom unit conversion (#83228)
* Refactor support for integrations to drop custom unit conversion * Fix lying comment * Address review comment
This commit is contained in:
@@ -889,6 +889,14 @@ async def test_unit_conversion_priority_suggested_unit_change(
|
||||
621,
|
||||
SensorDeviceClass.DISTANCE,
|
||||
),
|
||||
(
|
||||
US_CUSTOMARY_SYSTEM,
|
||||
LENGTH_METERS,
|
||||
LENGTH_MILES,
|
||||
1000000,
|
||||
621.371,
|
||||
SensorDeviceClass.DISTANCE,
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_unit_conversion_priority_legacy_conversion_removed(
|
||||
|
||||
Reference in New Issue
Block a user