Add string and icon translations to pyLoad integration (#120234)

add string and icon translations to pyLoad
This commit is contained in:
Mr. Bubbles 2024-06-23 14:25:36 +02:00 committed by GitHub
parent 001abdaccf
commit 473b3b61eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 5 deletions

View file

@ -58,7 +58,7 @@ class PyLoadSensorEntity(StrEnum):
SENSOR_DESCRIPTIONS: tuple[SensorEntityDescription, ...] = (
SensorEntityDescription(
key=PyLoadSensorEntity.SPEED,
name="Speed",
translation_key=PyLoadSensorEntity.SPEED,
device_class=SensorDeviceClass.DATA_RATE,
native_unit_of_measurement=UnitOfDataRate.BYTES_PER_SECOND,
suggested_unit_of_measurement=UnitOfDataRate.MEGABYTES_PER_SECOND,