mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 10:17:51 +00:00
Fix Unit of Measurement for Squeezebox duration sensor entity on LMS service (#139861)
UOM Fix
This commit is contained in:
parent
11348959ca
commit
354cd90c92
@ -43,6 +43,7 @@ SENSORS: tuple[SensorEntityDescription, ...] = (
|
|||||||
state_class=SensorStateClass.TOTAL,
|
state_class=SensorStateClass.TOTAL,
|
||||||
device_class=SensorDeviceClass.DURATION,
|
device_class=SensorDeviceClass.DURATION,
|
||||||
native_unit_of_measurement=UnitOfTime.SECONDS,
|
native_unit_of_measurement=UnitOfTime.SECONDS,
|
||||||
|
suggested_unit_of_measurement=UnitOfTime.HOURS,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key=STATUS_SENSOR_INFO_TOTAL_GENRES,
|
key=STATUS_SENSOR_INFO_TOTAL_GENRES,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user