Skip to content

Commit

Permalink
fix(hardware): Fix syntax error in battery status check
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeCantCU committed Nov 2, 2023
1 parent e14f166 commit 83e4ab5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ublue_update/update_inhibitors/hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ def check_battery_status() -> dict:
# when the system doesn't have a battery
battery_pass: bool = True
if battery_status is not None:
battery_pass = (
battery_status.percent >= min_battery_percent or battery_status.power_plugged
)
battery_pass = (battery_status.percent >= min_battery_percent or battery_status.power_plugged)
return {
"passed": battery_pass,
"message": f"Battery less than {min_battery_percent}%",
Expand Down

0 comments on commit 83e4ab5

Please sign in to comment.