mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Add icon translations to Lidarr (#111896)
This commit is contained in:
parent
689651ee2c
commit
b29ddfb9be
15
homeassistant/components/lidarr/icons.json
Normal file
15
homeassistant/components/lidarr/icons.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"disk_space": {
|
||||||
|
"default": "mdi:harddisk"
|
||||||
|
},
|
||||||
|
"queue": {
|
||||||
|
"default": "mdi:download"
|
||||||
|
},
|
||||||
|
"wanted": {
|
||||||
|
"default": "mdi:music"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -74,7 +74,6 @@ SENSOR_TYPES: dict[str, LidarrSensorEntityDescription[Any]] = {
|
|||||||
translation_key="disk_space",
|
translation_key="disk_space",
|
||||||
native_unit_of_measurement=UnitOfInformation.GIGABYTES,
|
native_unit_of_measurement=UnitOfInformation.GIGABYTES,
|
||||||
device_class=SensorDeviceClass.DATA_SIZE,
|
device_class=SensorDeviceClass.DATA_SIZE,
|
||||||
icon="mdi:harddisk",
|
|
||||||
value_fn=get_space,
|
value_fn=get_space,
|
||||||
state_class=SensorStateClass.TOTAL,
|
state_class=SensorStateClass.TOTAL,
|
||||||
description_fn=get_modified_description,
|
description_fn=get_modified_description,
|
||||||
@ -83,7 +82,6 @@ SENSOR_TYPES: dict[str, LidarrSensorEntityDescription[Any]] = {
|
|||||||
key="queue",
|
key="queue",
|
||||||
translation_key="queue",
|
translation_key="queue",
|
||||||
native_unit_of_measurement="Albums",
|
native_unit_of_measurement="Albums",
|
||||||
icon="mdi:download",
|
|
||||||
value_fn=lambda data, _: data.totalRecords,
|
value_fn=lambda data, _: data.totalRecords,
|
||||||
state_class=SensorStateClass.TOTAL,
|
state_class=SensorStateClass.TOTAL,
|
||||||
attributes_fn=lambda data: {i.title: queue_str(i) for i in data.records},
|
attributes_fn=lambda data: {i.title: queue_str(i) for i in data.records},
|
||||||
@ -92,7 +90,6 @@ SENSOR_TYPES: dict[str, LidarrSensorEntityDescription[Any]] = {
|
|||||||
key="wanted",
|
key="wanted",
|
||||||
translation_key="wanted",
|
translation_key="wanted",
|
||||||
native_unit_of_measurement="Albums",
|
native_unit_of_measurement="Albums",
|
||||||
icon="mdi:music",
|
|
||||||
value_fn=lambda data, _: data.totalRecords,
|
value_fn=lambda data, _: data.totalRecords,
|
||||||
state_class=SensorStateClass.TOTAL,
|
state_class=SensorStateClass.TOTAL,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user