Add icon translations to Hassio (#111715)

This commit is contained in:
Joost Lekkerkerker 2024-02-28 16:33:46 +01:00 committed by GitHub
parent 5940dbd51d
commit 0ff55a2d24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1,25 @@
{
"entity": {
"sensor": {
"cpu_percent": {
"default": "mdi:cpu-64-bit"
},
"memory_percent": {
"default": "mdi:memory"
}
}
},
"services": {
"addon_start": "mdi:play",
"addon_restart": "mdi:restart",
"addon_stdin": "mdi:console",
"addon_stop": "mdi:stop",
"addon_update": "mdi:update",
"host_reboot": "mdi:restart",
"host_shutdown": "mdi:power",
"backup_full": "mdi:content-save",
"backup_partial": "mdi:content-save",
"restore_full": "mdi:backup-restore",
"restore_partial": "mdi:backup-restore"
}
}

View file

@ -50,7 +50,6 @@ STATS_ENTITY_DESCRIPTIONS = (
entity_registry_enabled_default=False,
key=ATTR_CPU_PERCENT,
translation_key="cpu_percent",
icon="mdi:cpu-64-bit",
native_unit_of_measurement=PERCENTAGE,
state_class=SensorStateClass.MEASUREMENT,
),
@ -58,7 +57,6 @@ STATS_ENTITY_DESCRIPTIONS = (
entity_registry_enabled_default=False,
key=ATTR_MEMORY_PERCENT,
translation_key="memory_percent",
icon="mdi:memory",
native_unit_of_measurement=PERCENTAGE,
state_class=SensorStateClass.MEASUREMENT,
),