From 1ca145058025e7edabd11eec51d8661aa56a0fe4 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 23 May 2025 15:25:08 +0200 Subject: [PATCH] =?UTF-8?q?Add=20concentration=20conversion=20support=20fo?= =?UTF-8?q?r=20mg/m=C2=B3=20(#2675)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/core/entity/number.md | 2 +- docs/core/entity/sensor.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/core/entity/number.md b/docs/core/entity/number.md index fd4c6430..0ca89341 100644 --- a/docs/core/entity/number.md +++ b/docs/core/entity/number.md @@ -75,7 +75,7 @@ If specifying a device class, your number entity will need to also return the co | `NumberDeviceClass.SPEED` | ft/s, in/d, in/h, in/s, km/h, kn, m/s, mph, mm/d, mm/s | Generic speed | `NumberDeviceClass.SULPHUR_DIOXIDE` | µg/m³ | Concentration of sulphure dioxide | `NumberDeviceClass.TEMPERATURE` | °C, °F, K | Temperature. -| `NumberDeviceClass.VOLATILE_ORGANIC_COMPOUNDS` | µg/m³ | Concentration of volatile organic compounds +| `NumberDeviceClass.VOLATILE_ORGANIC_COMPOUNDS` | µg/m³, mg/m³ | Concentration of volatile organic compounds | `NumberDeviceClass.VOLATILE_ORGANIC_COMPOUNDS_PARTS` | ppm, ppb | Ratio of volatile organic compounds | `NumberDeviceClass.VOLTAGE` | V, mV, µV, kV, MV | Voltage | `NumberDeviceClass.VOLUME` | L, mL, gal, fl. oz., m³, ft³, CCF | Generic volume, this device class should be used to represent a consumption, for example the amount of fuel consumed by a vehicle. diff --git a/docs/core/entity/sensor.md b/docs/core/entity/sensor.md index fd392af9..90fddaa6 100644 --- a/docs/core/entity/sensor.md +++ b/docs/core/entity/sensor.md @@ -79,7 +79,7 @@ If specifying a device class, your sensor entity will need to also return the co | `SensorDeviceClass.SULPHUR_DIOXIDE` | µg/m³ | Concentration of sulphure dioxide | `SensorDeviceClass.TEMPERATURE` | °C, °F, K | Temperature. | `SensorDeviceClass.TIMESTAMP` | | Timestamp. Requires `native_value` to return a Python `datetime.datetime` object, with time zone information, or `None`. -| `SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS` | µg/m³ | Concentration of volatile organic compounds +| `SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS` | µg/m³, mg/m³ | Concentration of volatile organic compounds | `SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS_PARTS` | ppm, ppb | Ratio of volatile organic compounds | `SensorDeviceClass.VOLTAGE` | V, mV, µV, kV, MV | Voltage | `SensorDeviceClass.VOLUME` | L, mL, gal, fl. oz., m³, ft³, CCF | Generic volume, this device class should be used for sensors representing a consumption, for example the amount of fuel consumed by a vehicle.