Fix Unit of Measurement for Squeezebox duration sensor entity on LMS service (#139861)

UOM Fix
This commit is contained in:
peteS-UK 2025-03-07 12:53:24 +00:00 committed by GitHub
parent 11348959ca
commit 354cd90c92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,6 +43,7 @@ SENSORS: tuple[SensorEntityDescription, ...] = (
state_class=SensorStateClass.TOTAL,
device_class=SensorDeviceClass.DURATION,
native_unit_of_measurement=UnitOfTime.SECONDS,
suggested_unit_of_measurement=UnitOfTime.HOURS,
),
SensorEntityDescription(
key=STATUS_SENSOR_INFO_TOTAL_GENRES,