From 5ad9228568be47cd374e627a84008e609104d31d Mon Sep 17 00:00:00 2001 From: Alex Meyer Date: Wed, 25 Oct 2023 09:04:46 -0400 Subject: [PATCH] fix: min_battery_percent = 0 now works to "skip" --- src/ublue_update/update_inhibitors/hardware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ublue_update/update_inhibitors/hardware.py b/src/ublue_update/update_inhibitors/hardware.py index 93a04e4..5774953 100644 --- a/src/ublue_update/update_inhibitors/hardware.py +++ b/src/ublue_update/update_inhibitors/hardware.py @@ -29,7 +29,7 @@ def check_battery_status() -> dict: battery_pass: bool = True if battery_status is not None: battery_pass = ( - battery_status.percent > min_battery_percent or battery_status.power_plugged + battery_status.percent >= min_battery_percent or battery_status.power_plugged ) return { "passed": battery_pass,