From 6dc84a6b42768002129ae59f9e193b428e0b77e8 Mon Sep 17 00:00:00 2001 From: jbouwh Date: Sat, 17 May 2025 20:25:30 +0000 Subject: [PATCH] =?UTF-8?q?Use=20remark=20#=20=CE=BC=20=3D=3D=20'\u03bc'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- homeassistant/components/aranet/sensor.py | 2 +- homeassistant/components/derivative/sensor.py | 2 +- homeassistant/components/fyta/sensor.py | 2 +- homeassistant/components/tuya/const.py | 2 +- homeassistant/const.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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 ea46096144f..ebb85b37f12 100644 --- a/homeassistant/components/derivative/sensor.py +++ b/homeassistant/components/derivative/sensor.py @@ -64,7 +64,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 3fdbd26a0d8..78685c469ab 100644 --- a/homeassistant/components/tuya/const.py +++ b/homeassistant/components/tuya/const.py @@ -497,7 +497,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 25fad3e5455..bf38af7b0e2 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -665,7 +665,7 @@ class UnitOfElectricCurrent(StrEnum): class UnitOfElectricPotential(StrEnum): """Electric potential units.""" - MICROVOLT = "μV" # b'\xce\xbcV' + MICROVOLT = "μV" # "μ" == "\u03bc" MILLIVOLT = "mV" VOLT = "V" KILOVOLT = "kV"