diff --git a/homeassistant/const.py b/homeassistant/const.py index 41068748fd8ea..dc20627ed7228 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -1357,7 +1357,7 @@ class UnitOfBloodGlucoseConcentration(StrEnum): """Blood glucose concentration units.""" MILLIGRAMS_PER_DECILITER = "mg/dL" - MILLIMOLS_PER_LITER = "mmol/L" + MILLIMOLE_PER_LITER = "mmol/L" # Speed units diff --git a/homeassistant/util/unit_conversion.py b/homeassistant/util/unit_conversion.py index b1c2e4cd309c9..b4fe0a4c7f274 100644 --- a/homeassistant/util/unit_conversion.py +++ b/homeassistant/util/unit_conversion.py @@ -180,7 +180,7 @@ class BloodGlugoseConcentrationConverter(BaseUnitConverter): UNIT_CLASS = "blood_glucose_concentration" _UNIT_CONVERSION: dict[str | None, float] = { UnitOfBloodGlucoseConcentration.MILLIGRAMS_PER_DECILITER: 18, - UnitOfBloodGlucoseConcentration.MILLIMOLS_PER_LITER: 1, + UnitOfBloodGlucoseConcentration.MILLIMOLE_PER_LITER: 1, } VALID_UNITS = set(UnitOfBloodGlucoseConcentration) diff --git a/tests/util/test_unit_conversion.py b/tests/util/test_unit_conversion.py index d17ab39f0679c..65e4aa1e1ba47 100644 --- a/tests/util/test_unit_conversion.py +++ b/tests/util/test_unit_conversion.py @@ -85,7 +85,7 @@ _GET_UNIT_RATIO: dict[type[BaseUnitConverter], tuple[str | None, str | None, float]] = { BloodGlugoseConcentrationConverter: ( UnitOfBloodGlucoseConcentration.MILLIGRAMS_PER_DECILITER, - UnitOfBloodGlucoseConcentration.MILLIMOLS_PER_LITER, + UnitOfBloodGlucoseConcentration.MILLIMOLE_PER_LITER, 18, ), ConductivityConverter: ( @@ -143,11 +143,11 @@ 90, UnitOfBloodGlucoseConcentration.MILLIGRAMS_PER_DECILITER, 5, - UnitOfBloodGlucoseConcentration.MILLIMOLS_PER_LITER, + UnitOfBloodGlucoseConcentration.MILLIMOLE_PER_LITER, ), ( 1, - UnitOfBloodGlucoseConcentration.MILLIMOLS_PER_LITER, + UnitOfBloodGlucoseConcentration.MILLIMOLE_PER_LITER, 18, UnitOfBloodGlucoseConcentration.MILLIGRAMS_PER_DECILITER, ),