mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Add string and icon translations to pyLoad integration (#120234)
add string and icon translations to pyLoad
This commit is contained in:
parent
001abdaccf
commit
473b3b61eb
9
homeassistant/components/pyload/icons.json
Normal file
9
homeassistant/components/pyload/icons.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"speed": {
|
||||
"default": "mdi:speedometer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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,
|
||||
|
@ -27,6 +27,13 @@
|
||||
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
|
||||
}
|
||||
},
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"speed": {
|
||||
"name": "Speed"
|
||||
}
|
||||
}
|
||||
},
|
||||
"issues": {
|
||||
"deprecated_yaml_import_issue_cannot_connect": {
|
||||
"title": "The pyLoad YAML configuration import failed",
|
||||
|
@ -33,7 +33,7 @@
|
||||
'platform': 'pyload',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': None,
|
||||
'translation_key': <PyLoadSensorEntity.SPEED: 'speed'>,
|
||||
'unique_id': 'XXXXXXXXXXXXXX_speed',
|
||||
'unit_of_measurement': <UnitOfDataRate.MEGABYTES_PER_SECOND: 'MB/s'>,
|
||||
})
|
||||
@ -87,7 +87,7 @@
|
||||
'platform': 'pyload',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': None,
|
||||
'translation_key': <PyLoadSensorEntity.SPEED: 'speed'>,
|
||||
'unique_id': 'XXXXXXXXXXXXXX_speed',
|
||||
'unit_of_measurement': <UnitOfDataRate.MEGABYTES_PER_SECOND: 'MB/s'>,
|
||||
})
|
||||
@ -141,7 +141,7 @@
|
||||
'platform': 'pyload',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': None,
|
||||
'translation_key': <PyLoadSensorEntity.SPEED: 'speed'>,
|
||||
'unique_id': 'XXXXXXXXXXXXXX_speed',
|
||||
'unit_of_measurement': <UnitOfDataRate.MEGABYTES_PER_SECOND: 'MB/s'>,
|
||||
})
|
||||
@ -372,7 +372,7 @@
|
||||
'platform': 'pyload',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': None,
|
||||
'translation_key': <PyLoadSensorEntity.SPEED: 'speed'>,
|
||||
'unique_id': 'XXXXXXXXXXXXXX_speed',
|
||||
'unit_of_measurement': <UnitOfDataRate.MEGABYTES_PER_SECOND: 'MB/s'>,
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user