Skip to content

Commit

Permalink
Merge pull request #194 from dougiteixeira/change-uptime
Browse files Browse the repository at this point in the history
Change the Uptime sensor description to Last boot
  • Loading branch information
dougiteixeira authored Nov 26, 2023
2 parents 0ff349a + ab70d09 commit a93f0f0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion custom_components/proxmoxve/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class ProxmoxSensorEntityDescription(ProxmoxEntityDescription, SensorEntityDescr
PROXMOX_SENSOR_UPTIME: Final[tuple[ProxmoxSensorEntityDescription, ...]] = (
ProxmoxSensorEntityDescription(
key=ProxmoxKeyAPIParse.UPTIME,
name="Uptime",
name="Last boot",
icon="mdi:database-clock-outline",
conversion_fn=lambda x: (
dt_util.utcnow() - timedelta(seconds=x) if x > 0 else None
Expand Down
2 changes: 1 addition & 1 deletion custom_components/proxmoxve/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
}
},
"uptime": {
"name": "Uptime"
"name": "Last boot"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/proxmoxve/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"name": "Prozentsatz genutzter Auslagerungsspeicher"
},
"uptime": {
"name": "Betriebszeit"
"name": "Letzter start"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion custom_components/proxmoxve/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
}
},
"uptime": {
"name": "Uptime"
"name": "Last boot"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/proxmoxve/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"name": "Percentuale Swap usata"
},
"uptime": {
"name": "Uptime"
"name": "Last avvio"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion custom_components/proxmoxve/translations/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
}
},
"uptime": {
"name": "Tempo de atividade"
"name": "Última inicialização"
}
}
},
Expand Down

0 comments on commit a93f0f0

Please sign in to comment.