mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Make Radarr units translatable (#139250)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
parent
507c0739df
commit
d45fce86a9
@ -81,14 +81,12 @@ SENSOR_TYPES: dict[str, RadarrSensorEntityDescription[Any]] = {
|
|||||||
"movie": RadarrSensorEntityDescription[int](
|
"movie": RadarrSensorEntityDescription[int](
|
||||||
key="movies",
|
key="movies",
|
||||||
translation_key="movies",
|
translation_key="movies",
|
||||||
native_unit_of_measurement="Movies",
|
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
value_fn=lambda data, _: data,
|
value_fn=lambda data, _: data,
|
||||||
),
|
),
|
||||||
"queue": RadarrSensorEntityDescription[int](
|
"queue": RadarrSensorEntityDescription[int](
|
||||||
key="queue",
|
key="queue",
|
||||||
translation_key="queue",
|
translation_key="queue",
|
||||||
native_unit_of_measurement="Movies",
|
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
state_class=SensorStateClass.TOTAL,
|
state_class=SensorStateClass.TOTAL,
|
||||||
value_fn=lambda data, _: data,
|
value_fn=lambda data, _: data,
|
||||||
|
@ -43,10 +43,12 @@
|
|||||||
},
|
},
|
||||||
"sensor": {
|
"sensor": {
|
||||||
"movies": {
|
"movies": {
|
||||||
"name": "Movies"
|
"name": "Movies",
|
||||||
|
"unit_of_measurement": "[%key:component::radarr::entity::sensor::movies::name%]"
|
||||||
},
|
},
|
||||||
"queue": {
|
"queue": {
|
||||||
"name": "Queue"
|
"name": "Queue",
|
||||||
|
"unit_of_measurement": "[%key:component::radarr::entity::sensor::movies::name%]"
|
||||||
},
|
},
|
||||||
"start_time": {
|
"start_time": {
|
||||||
"name": "Start time"
|
"name": "Start time"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user