mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Add entity translations to Radarr (#95317)
This commit is contained in:
parent
73bc5a4e8f
commit
8d1cd39044
@ -18,7 +18,7 @@ from .const import DOMAIN, HEALTH_ISSUES
|
||||
|
||||
BINARY_SENSOR_TYPE = BinarySensorEntityDescription(
|
||||
key="health",
|
||||
name="Health",
|
||||
translation_key="health",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
device_class=BinarySensorDeviceClass.PROBLEM,
|
||||
)
|
||||
|
@ -76,7 +76,7 @@ SENSOR_TYPES: dict[str, RadarrSensorEntityDescription[Any]] = {
|
||||
),
|
||||
"movie": RadarrSensorEntityDescription[int](
|
||||
key="movies",
|
||||
name="Movies",
|
||||
translation_key="movies",
|
||||
native_unit_of_measurement="Movies",
|
||||
icon="mdi:television",
|
||||
entity_registry_enabled_default=False,
|
||||
@ -84,7 +84,7 @@ SENSOR_TYPES: dict[str, RadarrSensorEntityDescription[Any]] = {
|
||||
),
|
||||
"status": RadarrSensorEntityDescription[SystemStatus](
|
||||
key="start_time",
|
||||
name="Start time",
|
||||
translation_key="start_time",
|
||||
device_class=SensorDeviceClass.TIMESTAMP,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
entity_registry_enabled_default=False,
|
||||
|
@ -34,5 +34,20 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"entity": {
|
||||
"binary_sensor": {
|
||||
"health": {
|
||||
"name": "Health"
|
||||
}
|
||||
},
|
||||
"sensor": {
|
||||
"movies": {
|
||||
"name": "Movies"
|
||||
},
|
||||
"start_time": {
|
||||
"name": "Start time"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user