mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Show eMMC lifetime (#8302)
This commit is contained in:
parent
62dd0a561e
commit
f7c7ac44f7
@ -150,6 +150,18 @@ class HassioHostInfo extends LitElement {
|
|||||||
: ""}
|
: ""}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
${this.supervisor.host.disk_life_time !== "" &&
|
||||||
|
this.supervisor.host.disk_life_time >= 10
|
||||||
|
? html` <ha-settings-row>
|
||||||
|
<span slot="heading">
|
||||||
|
eMMC Lifetime Used
|
||||||
|
</span>
|
||||||
|
<span slot="description">
|
||||||
|
${this.supervisor.host.disk_life_time - 10}% -
|
||||||
|
${this.supervisor.host.disk_life_time}%
|
||||||
|
</span>
|
||||||
|
</ha-settings-row>`
|
||||||
|
: ""}
|
||||||
${metrics.map(
|
${metrics.map(
|
||||||
(metric) =>
|
(metric) =>
|
||||||
html`
|
html`
|
||||||
|
@ -5,6 +5,7 @@ export type HassioHostInfo = {
|
|||||||
chassis: string;
|
chassis: string;
|
||||||
cpe: string;
|
cpe: string;
|
||||||
deployment: string;
|
deployment: string;
|
||||||
|
disk_life_time: number | "";
|
||||||
disk_free: number;
|
disk_free: number;
|
||||||
disk_total: number;
|
disk_total: number;
|
||||||
disk_used: number;
|
disk_used: number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user