forked from home-assistant/core
Use remark # μ == '\u03bc'
This commit is contained in:
@@ -92,7 +92,7 @@ SENSOR_DESCRIPTIONS = {
|
|||||||
key="radiation_rate",
|
key="radiation_rate",
|
||||||
translation_key="radiation_rate",
|
translation_key="radiation_rate",
|
||||||
name="Radiation Dose 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,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
suggested_display_precision=2,
|
suggested_display_precision=2,
|
||||||
scale=0.001,
|
scale=0.001,
|
||||||
|
@@ -61,7 +61,7 @@ ATTR_SOURCE_ID = "source"
|
|||||||
UNIT_PREFIXES = {
|
UNIT_PREFIXES = {
|
||||||
None: 1,
|
None: 1,
|
||||||
"n": 1e-9,
|
"n": 1e-9,
|
||||||
"μ": 1e-6,
|
"μ": 1e-6, # "μ" == "\u03bc"
|
||||||
"m": 1e-3,
|
"m": 1e-3,
|
||||||
"k": 1e3,
|
"k": 1e3,
|
||||||
"M": 1e6,
|
"M": 1e6,
|
||||||
|
@@ -105,7 +105,7 @@ SENSORS: Final[list[FytaSensorEntityDescription]] = [
|
|||||||
FytaSensorEntityDescription(
|
FytaSensorEntityDescription(
|
||||||
key="light",
|
key="light",
|
||||||
translation_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,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
value_fn=lambda plant: plant.light,
|
value_fn=lambda plant: plant.light,
|
||||||
),
|
),
|
||||||
|
@@ -496,7 +496,7 @@ UNITS = (
|
|||||||
),
|
),
|
||||||
UnitOfMeasurement(
|
UnitOfMeasurement(
|
||||||
unit=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
|
unit=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
|
||||||
aliases={"ug/m3", "μg/m3", "ug/m³"},
|
aliases={"ug/m3", "μg/m3", "\u00b5g/m3", "ug/m³"},
|
||||||
device_classes={
|
device_classes={
|
||||||
SensorDeviceClass.NITROGEN_DIOXIDE,
|
SensorDeviceClass.NITROGEN_DIOXIDE,
|
||||||
SensorDeviceClass.NITROGEN_MONOXIDE,
|
SensorDeviceClass.NITROGEN_MONOXIDE,
|
||||||
|
@@ -664,7 +664,7 @@ class UnitOfElectricCurrent(StrEnum):
|
|||||||
class UnitOfElectricPotential(StrEnum):
|
class UnitOfElectricPotential(StrEnum):
|
||||||
"""Electric potential units."""
|
"""Electric potential units."""
|
||||||
|
|
||||||
MICROVOLT = "μV" # b'\xce\xbcV'
|
MICROVOLT = "μV" # "μ" == "\u03bc"
|
||||||
MILLIVOLT = "mV"
|
MILLIVOLT = "mV"
|
||||||
VOLT = "V"
|
VOLT = "V"
|
||||||
KILOVOLT = "kV"
|
KILOVOLT = "kV"
|
||||||
|
Reference in New Issue
Block a user