mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Fix unitless converter missing valid units (#152665)
This commit is contained in:
@@ -742,6 +742,8 @@ class UnitlessRatioConverter(BaseUnitConverter):
|
||||
}
|
||||
VALID_UNITS = {
|
||||
None,
|
||||
CONCENTRATION_PARTS_PER_BILLION,
|
||||
CONCENTRATION_PARTS_PER_MILLION,
|
||||
PERCENTAGE,
|
||||
}
|
||||
|
||||
|
||||
@@ -5201,7 +5201,7 @@ async def test_validate_statistics_unit_ignore_device_class(
|
||||
BATTERY_SENSOR_ATTRIBUTES,
|
||||
"%",
|
||||
None,
|
||||
"%, <None>",
|
||||
"%, <None>, ppb, ppm",
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user