mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Add device class for UPNP uptime sensor (#126306)
Allows for easier conversion of time periods within HA natively
This commit is contained in:
parent
7ff0d54291
commit
fb56c5875a
@ -89,6 +89,7 @@ SENSOR_DESCRIPTIONS: tuple[UpnpSensorEntityDescription, ...] = (
|
||||
UpnpSensorEntityDescription(
|
||||
key=ROUTER_UPTIME,
|
||||
translation_key="uptime",
|
||||
device_class=SensorDeviceClass.DURATION,
|
||||
native_unit_of_measurement=UnitOfTime.SECONDS,
|
||||
entity_registry_enabled_default=False,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
|
Loading…
x
Reference in New Issue
Block a user