Show more details on storage page (#26202)

This commit is contained in:
Petar Petrov 2025-07-18 09:31:31 +03:00 committed by GitHub
parent 4a50ca4ea5
commit 1a0afc5079
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View File

@ -106,6 +106,16 @@ class HaConfigSectionStorage extends LitElement {
)}
.tooltip=${`${this._hostInfo.disk_used} GB/${this._hostInfo.disk_total} GB`}
></ha-metric>
<div class="detailed-storage-info">
${this.hass.localize(
"ui.panel.config.storage.detailed_description",
{
used: `${this._hostInfo?.disk_used} GB`,
total: `${this._hostInfo?.disk_total} GB`,
free_space: `${this._hostInfo.disk_free} GB`,
}
)}
</div>
${this._hostInfo.disk_life_time !== "" &&
this._hostInfo.disk_life_time >= 10
? // prettier-ignore
@ -316,6 +326,11 @@ class HaConfigSectionStorage extends LitElement {
justify-content: space-between;
flex-direction: column;
}
.detailed-storage-info {
font-size: var(--ha-font-size-s);
color: var(--secondary-text-color);
}
.mount-state-failed {
color: var(--error-color);
}

View File

@ -6571,6 +6571,7 @@
"caption": "Storage",
"description": "{percent_used} used - {free_space} free",
"used_space": "Used space",
"detailed_description": "{used} used of {total} total, {free_space} remaining",
"emmc_lifetime_used": "eMMC lifetime used",
"disk_metrics": "Disk metrics",
"datadisk": {