mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Get suggested_unit_of_measurement via unit converter's UNIT_CLASS (#119196)
Co-authored-by: Richard <rikroe@users.noreply.github.com> Co-authored-by: Erik Montnemery <erik@montnemery.com>
This commit is contained in:
@@ -942,7 +942,21 @@ async def test_custom_unit_change(
|
||||
"1000000",
|
||||
"1093613",
|
||||
SensorDeviceClass.DISTANCE,
|
||||
)
|
||||
),
|
||||
# Volume Storage (subclass of Volume)
|
||||
(
|
||||
US_CUSTOMARY_SYSTEM,
|
||||
UnitOfVolume.LITERS,
|
||||
UnitOfVolume.GALLONS,
|
||||
UnitOfVolume.GALLONS,
|
||||
UnitOfVolume.FLUID_OUNCES,
|
||||
1000,
|
||||
"1000",
|
||||
"264",
|
||||
"264",
|
||||
"33814",
|
||||
SensorDeviceClass.VOLUME_STORAGE,
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_unit_conversion_priority(
|
||||
|
||||
Reference in New Issue
Block a user