From 00914cc0a3e50e8ecd657d7959da6d2920b2b2f3 Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Sun, 5 Apr 2026 17:50:27 +0000 Subject: [PATCH 1/2] Add device class UPTIME documentation for Sensor --- 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 bb8cc27d249..f13f2a3cd51 100644 --- a/docs/core/entity/sensor.md +++ b/docs/core/entity/sensor.md @@ -82,6 +82,7 @@ If specifying a device class, your sensor entity will need to also return the co | `SensorDeviceClass.TEMPERATURE` | °C, °F, K | Temperature. | `SensorDeviceClass.TEMPERATURE_DELTA` | °C, °F, K | This device class represents a temperature interval (delta), i.e. the difference between two temperature values. | `SensorDeviceClass.TIMESTAMP` | | Timestamp. Requires `native_value` to return a Python `datetime.datetime` object, with time zone information, or `None`. +| `SensorDeviceClass.UPTIME` | | Timestamp. Represent datetime of last boot of the device. | `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 From 9dfa4de4a610690c765ac6870dc5edb6a16964ba Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Sun, 5 Apr 2026 18:06:58 +0000 Subject: [PATCH 2/2] tweak --- docs/core/entity/sensor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/entity/sensor.md b/docs/core/entity/sensor.md index f13f2a3cd51..106f1a84580 100644 --- a/docs/core/entity/sensor.md +++ b/docs/core/entity/sensor.md @@ -82,7 +82,7 @@ If specifying a device class, your sensor entity will need to also return the co | `SensorDeviceClass.TEMPERATURE` | °C, °F, K | Temperature. | `SensorDeviceClass.TEMPERATURE_DELTA` | °C, °F, K | This device class represents a temperature interval (delta), i.e. the difference between two temperature values. | `SensorDeviceClass.TIMESTAMP` | | Timestamp. Requires `native_value` to return a Python `datetime.datetime` object, with time zone information, or `None`. -| `SensorDeviceClass.UPTIME` | | Timestamp. Represent datetime of last boot of the device. +| `SensorDeviceClass.UPTIME` | | Timestamp. Represents the datetime when the device last booted. Requires `native_value` to return a Python `datetime.datetime` object, with time zone information, or `None`. | `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