Skip to content

Commit

Permalink
Add translated native unit of measurement to Jellyfin (#132055)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieger authored Dec 2, 2024
1 parent c610f16 commit 0c693b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion homeassistant/components/jellyfin/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def _count_now_playing(data: dict[str, dict[str, Any]]) -> int:
key="watching",
translation_key="watching",
value_fn=_count_now_playing,
native_unit_of_measurement="clients",
),
)

Expand Down
3 changes: 2 additions & 1 deletion homeassistant/components/jellyfin/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"entity": {
"sensor": {
"watching": {
"name": "Active clients"
"name": "Active clients",
"unit_of_measurement": "clients"
}
}
},
Expand Down

0 comments on commit 0c693b6

Please sign in to comment.