Skip to content

Commit

Permalink
min_battery_percent = 0 now works to "skip"
Browse files Browse the repository at this point in the history
  • Loading branch information
reyemxela committed Oct 25, 2023
1 parent 427912c commit eaf16da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ublue_update/update_inhibitors/hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eaf16da

Please sign in to comment.