Add new device class: PH (potential hydrogen) (#95928)

This commit is contained in:
Miguel Camba
2023-07-23 18:49:10 +02:00
committed by GitHub
parent 1552319e94
commit 38111141f9
9 changed files with 32 additions and 0 deletions

View File

@@ -216,6 +216,12 @@ class NumberDeviceClass(StrEnum):
Unit of measurement: `µg/m³`
"""
PH = "ph"
"""Potential hidrogen (acidity/alkalinity).
Unit of measurement: Unitless
"""
PM1 = "pm1"
"""Particulate matter <= 1 μm.
@@ -422,6 +428,7 @@ DEVICE_CLASS_UNITS: dict[NumberDeviceClass, set[type[StrEnum] | str | None]] = {
NumberDeviceClass.NITROGEN_MONOXIDE: {CONCENTRATION_MICROGRAMS_PER_CUBIC_METER},
NumberDeviceClass.NITROUS_OXIDE: {CONCENTRATION_MICROGRAMS_PER_CUBIC_METER},
NumberDeviceClass.OZONE: {CONCENTRATION_MICROGRAMS_PER_CUBIC_METER},
NumberDeviceClass.PH: {None},
NumberDeviceClass.PM1: {CONCENTRATION_MICROGRAMS_PER_CUBIC_METER},
NumberDeviceClass.PM10: {CONCENTRATION_MICROGRAMS_PER_CUBIC_METER},
NumberDeviceClass.PM25: {CONCENTRATION_MICROGRAMS_PER_CUBIC_METER},