diff --git a/homeassistant/components/aranet/sensor.py b/homeassistant/components/aranet/sensor.py index bc556209327..1835cc09a77 100644 --- a/homeassistant/components/aranet/sensor.py +++ b/homeassistant/components/aranet/sensor.py @@ -92,7 +92,7 @@ SENSOR_DESCRIPTIONS = { key="radiation_rate", translation_key="radiation_rate", name="Radiation Dose Rate", - native_unit_of_measurement="μSv/h", # b'\xce\xbc' + native_unit_of_measurement="μSv/h", # "μ" == "\u03bc" state_class=SensorStateClass.MEASUREMENT, suggested_display_precision=2, scale=0.001, diff --git a/homeassistant/components/derivative/sensor.py b/homeassistant/components/derivative/sensor.py index 8dea3859cec..8a0cf481c43 100644 --- a/homeassistant/components/derivative/sensor.py +++ b/homeassistant/components/derivative/sensor.py @@ -61,7 +61,7 @@ ATTR_SOURCE_ID = "source" UNIT_PREFIXES = { None: 1, "n": 1e-9, - "μ": 1e-6, + "μ": 1e-6, # "μ" == "\u03bc" "m": 1e-3, "k": 1e3, "M": 1e6, diff --git a/homeassistant/components/fyta/sensor.py b/homeassistant/components/fyta/sensor.py index 009804aff68..edb2ddfe6f3 100644 --- a/homeassistant/components/fyta/sensor.py +++ b/homeassistant/components/fyta/sensor.py @@ -105,7 +105,7 @@ SENSORS: Final[list[FytaSensorEntityDescription]] = [ FytaSensorEntityDescription( key="light", translation_key="light", - native_unit_of_measurement="μmol/s⋅m²", # b'\xce\xbc' + native_unit_of_measurement="μmol/s⋅m²", # "μ" == "\u03bc" state_class=SensorStateClass.MEASUREMENT, value_fn=lambda plant: plant.light, ), diff --git a/homeassistant/components/tuya/const.py b/homeassistant/components/tuya/const.py index 1641fe9402a..3aaf6fe362a 100644 --- a/homeassistant/components/tuya/const.py +++ b/homeassistant/components/tuya/const.py @@ -496,7 +496,7 @@ UNITS = ( ), UnitOfMeasurement( unit=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, - aliases={"ug/m3", "μg/m3", "ug/m³"}, + aliases={"ug/m3", "μg/m3", "\u00b5g/m3", "ug/m³"}, device_classes={ SensorDeviceClass.NITROGEN_DIOXIDE, SensorDeviceClass.NITROGEN_MONOXIDE, diff --git a/homeassistant/const.py b/homeassistant/const.py index b2d63becfee..e546e7b4b65 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -664,7 +664,7 @@ class UnitOfElectricCurrent(StrEnum): class UnitOfElectricPotential(StrEnum): """Electric potential units.""" - MICROVOLT = "μV" # b'\xce\xbcV' + MICROVOLT = "μV" # "μ" == "\u03bc" MILLIVOLT = "mV" VOLT = "V" KILOVOLT = "kV"