Add icon translations to QBittorrent (#112193)

This commit is contained in:
Joost Lekkerkerker
2024-03-05 08:44:04 +01:00
committed by GitHub
parent 30a8c1739f
commit 223be9c788
2 changed files with 12 additions and 2 deletions
@@ -0,0 +1,12 @@
{
"entity": {
"sensor": {
"download_speed": {
"default": "mdi:cloud-download"
},
"upload_speed": {
"default": "mdi:cloud-upload"
}
}
}
}
@@ -64,7 +64,6 @@ SENSOR_TYPES: tuple[QBittorrentSensorEntityDescription, ...] = (
QBittorrentSensorEntityDescription(
key=SENSOR_TYPE_DOWNLOAD_SPEED,
translation_key="download_speed",
icon="mdi:cloud-download",
device_class=SensorDeviceClass.DATA_RATE,
native_unit_of_measurement=UnitOfDataRate.BYTES_PER_SECOND,
suggested_display_precision=2,
@@ -76,7 +75,6 @@ SENSOR_TYPES: tuple[QBittorrentSensorEntityDescription, ...] = (
QBittorrentSensorEntityDescription(
key=SENSOR_TYPE_UPLOAD_SPEED,
translation_key="upload_speed",
icon="mdi:cloud-upload",
device_class=SensorDeviceClass.DATA_RATE,
native_unit_of_measurement=UnitOfDataRate.BYTES_PER_SECOND,
suggested_display_precision=2,