Skip to content

Commit 85e7ebd

Browse files
authored
Add SensorDeviceClass.UPTIME documentation (#3032)
1 parent b68528e commit 85e7ebd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs/core/entity/sensor.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ If specifying a device class, your sensor entity will need to also return the co
8282
| `SensorDeviceClass.TEMPERATURE` | °C, °F, K | Temperature.
8383
| `SensorDeviceClass.TEMPERATURE_DELTA` | °C, °F, K | This device class represents a temperature interval (delta), i.e. the difference between two temperature values.
8484
| `SensorDeviceClass.TIMESTAMP` | | Timestamp. Requires `native_value` to return a Python `datetime.datetime` object, with time zone information, or `None`.
85+
| `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`.
8586
| `SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS` | µg/m³, mg/m³ | Concentration of volatile organic compounds
8687
| `SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS_PARTS` | ppm, ppb | Ratio of volatile organic compounds
8788
| `SensorDeviceClass.VOLTAGE` | V, mV, µV, kV, MV | Voltage

0 commit comments

Comments
 (0)