Add translated native unit of measurement to Jellyfin (#132055)

pull/132195/head
Jan Rieger 2024-12-02 13:28:54 +01:00 committed by Franck Nijhof
parent f1ebda7c6f
commit f44103ac7f
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,6 @@ SENSOR_TYPES: tuple[JellyfinSensorEntityDescription, ...] = (
key="watching",
translation_key="watching",
value_fn=_count_now_playing,
native_unit_of_measurement="clients",
),
)

View File

@ -29,7 +29,8 @@
"entity": {
"sensor": {
"watching": {
"name": "Active clients"
"name": "Active clients",
"unit_of_measurement": "clients"
}
}
},