Add entity translations to Radarr (#95317)

This commit is contained in:
Robert Hillis 2023-06-27 02:45:27 -04:00 committed by GitHub
parent 73bc5a4e8f
commit 8d1cd39044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 3 deletions

View File

@ -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,
)

View File

@ -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,

View File

@ -34,5 +34,20 @@
}
}
}
},
"entity": {
"binary_sensor": {
"health": {
"name": "Health"
}
},
"sensor": {
"movies": {
"name": "Movies"
},
"start_time": {
"name": "Start time"
}
}
}
}