From 127b343e36f012f76695155e45630298ed067bbf Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 29 Oct 2024 09:06:26 +0100 Subject: [PATCH 1/3] Update number.md --- docs/core/entity/number.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/core/entity/number.md b/docs/core/entity/number.md index c67c7555073..e0673b78f21 100644 --- a/docs/core/entity/number.md +++ b/docs/core/entity/number.md @@ -35,6 +35,7 @@ If specifying a device class, your number entity will need to also return the co | `NumberDeviceClass.AQI` | None | Air Quality Index | `NumberDeviceClass.ATMOSPHERIC_PRESSURE` | cbar, bar, hPa, inHg, kPa, mbar, Pa, psi | Atmospheric pressure, statistics will be stored in Pa. | `NumberDeviceClass.BATTERY` | % | Percentage of battery that is left +| `NumberDeviceClass.BLOOD_SUGAR_LEVEL` | mg/dL, mmol/L | Blood sugar level | `NumberDeviceClass.CARBON_DIOXIDE` | ppm | Concentration of carbon dioxide. | `NumberDeviceClass.CARBON_MONOXIDE` | ppm | Concentration of carbon monoxide. | `NumberDeviceClass.CONDUCTIVITY` | S/cm, mS/cm, µS/cm | Conductivity From fd5142d6527b473ea14d879b52c40b5bd580a6f1 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 29 Oct 2024 09:07:57 +0100 Subject: [PATCH 2/3] Update sensor.md --- docs/core/entity/sensor.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/core/entity/sensor.md b/docs/core/entity/sensor.md index 51deea1f095..f223c87af06 100644 --- a/docs/core/entity/sensor.md +++ b/docs/core/entity/sensor.md @@ -36,6 +36,7 @@ If specifying a device class, your sensor entity will need to also return the co | `SensorDeviceClass.AQI` | None | Air Quality Index | `SensorDeviceClass.ATMOSPHERIC_PRESSURE` | cbar, bar, hPa, mmHG, inHg, kPa, mbar, Pa, psi | Atmospheric pressure. | `SensorDeviceClass.BATTERY` | % | Percentage of battery that is left +| `SensorDeviceClass.BLOOD_SUGAR_LEVEL` | mg/dL, mmol/L | Blood sugar level | `SensorDeviceClass.CO2` | ppm | Concentration of carbon dioxide. | `SensorDeviceClass.CO` | ppm | Concentration of carbon monoxide. | `SensorDeviceClass.CONDUCTIVITY` | S/cm, mS/cm, µS/cm | Conductivity From 7e0893795bf5d4b01473cd5fdb02864d4ad63c79 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 7 Nov 2024 17:00:34 +0100 Subject: [PATCH 3/3] Apply suggestions from code review --- 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 e0673b78f21..b8adddfbebb 100644 --- a/docs/core/entity/number.md +++ b/docs/core/entity/number.md @@ -35,7 +35,7 @@ If specifying a device class, your number entity will need to also return the co | `NumberDeviceClass.AQI` | None | Air Quality Index | `NumberDeviceClass.ATMOSPHERIC_PRESSURE` | cbar, bar, hPa, inHg, kPa, mbar, Pa, psi | Atmospheric pressure, statistics will be stored in Pa. | `NumberDeviceClass.BATTERY` | % | Percentage of battery that is left -| `NumberDeviceClass.BLOOD_SUGAR_LEVEL` | mg/dL, mmol/L | Blood sugar level +| `NumberDeviceClass.BLOOD_GLUCOSE_CONCENTRATION` | mg/dL, mmol/L | Blood glucose concentration``` | `NumberDeviceClass.CARBON_DIOXIDE` | ppm | Concentration of carbon dioxide. | `NumberDeviceClass.CARBON_MONOXIDE` | ppm | Concentration of carbon monoxide. | `NumberDeviceClass.CONDUCTIVITY` | S/cm, mS/cm, µS/cm | Conductivity diff --git a/docs/core/entity/sensor.md b/docs/core/entity/sensor.md index f223c87af06..155d050fc53 100644 --- a/docs/core/entity/sensor.md +++ b/docs/core/entity/sensor.md @@ -36,7 +36,7 @@ If specifying a device class, your sensor entity will need to also return the co | `SensorDeviceClass.AQI` | None | Air Quality Index | `SensorDeviceClass.ATMOSPHERIC_PRESSURE` | cbar, bar, hPa, mmHG, inHg, kPa, mbar, Pa, psi | Atmospheric pressure. | `SensorDeviceClass.BATTERY` | % | Percentage of battery that is left -| `SensorDeviceClass.BLOOD_SUGAR_LEVEL` | mg/dL, mmol/L | Blood sugar level +| `SensorDeviceClass.BLOOD_GLUCOSE_CONCENTRATION` | mg/dL, mmol/L | Blood glucose concentration``` | `SensorDeviceClass.CO2` | ppm | Concentration of carbon dioxide. | `SensorDeviceClass.CO` | ppm | Concentration of carbon monoxide. | `SensorDeviceClass.CONDUCTIVITY` | S/cm, mS/cm, µS/cm | Conductivity