forked from home-assistant/core
Use remark # μ == '\u03bc'
This commit is contained in:
@@ -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,
|
||||
|
@@ -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,
|
||||
|
@@ -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,
|
||||
),
|
||||
|
@@ -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,
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user