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:
Erik Montnemery
2022-12-05 16:12:37 +01:00
committed by GitHub
parent 1f7a7d5cb5
commit 67875b99a3
2 changed files with 52 additions and 28 deletions

View File

@@ -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(