1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Return optimistic life time estimate for eMMC storage (#6063)

This avoids that we display a 10% life time use for a brand new
eMMC storage. The values are estimates anyways, and there is a
separate value which represents life time completely used (100%).
This commit is contained in:
Stefan Agner
2025-08-05 10:43:57 +02:00
committed by GitHub
parent 628a18c6b8
commit f150d1b287
2 changed files with 3 additions and 3 deletions

View File

@@ -160,7 +160,7 @@ def test_try_get_emmc_life_time(coresys, tmp_path):
str(tmp_path / "fake-{}-lifetime"),
):
value = coresys.hardware.disk._try_get_emmc_life_time("mmcblk0")
assert value == 20.0
assert value == 10.0
async def test_try_get_nvme_life_time(