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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user