Skip to content

Commit

Permalink
Update trait.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DewGew authored Jan 31, 2024
1 parent 4c298dc commit 7c1cdf0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/trait.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ def query(custom_data, device, user_id):
if battery is not None:
if battery == 100:
descriptive_capacity_remaining = "FULL"
elif 75 <= battery < 100:
elif 50 <= battery < 100:
descriptive_capacity_remaining = "HIGH"
elif 25 <= battery < 75:
elif 15 <= battery < 50:
descriptive_capacity_remaining = "MEDIUM"
elif 10 <= battery < 25:
elif 10 <= battery < 15:
descriptive_capacity_remaining = "LOW"
elif 0 <= battery < 10:
descriptive_capacity_remaining = "CRITICALLY_LOW"
Expand Down

0 comments on commit 7c1cdf0

Please sign in to comment.