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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

View File

@ -0,0 +1,12 @@
{
"entity": {
"sensor": {
"download_speed": {
"default": "mdi:cloud-download"
},
"upload_speed": {
"default": "mdi:cloud-upload"
}
}
}
}

View File

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