Skip to content

Commit

Permalink
Merge pull request #14 from snicker/20231112_fix_unknown_status_s5
Browse files Browse the repository at this point in the history
adds `S5` status code for error.
  • Loading branch information
snicker authored Nov 12, 2023
2 parents 1428c67 + 77e7be3 commit 4248ce2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions juicepassproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,11 @@ def basic_message_try_parse(self, data):
"S0": "unplugged",
"S1": "plugged",
"S2": "charging",
"S5": "error",
"S00": "unplugged",
"S01": "plugged",
"S02": "charging",
"S05": "error"
}.get(part)
if message["status"] is None:
message["status"] = "unknown {}".format(part)
Expand Down

0 comments on commit 4248ce2

Please sign in to comment.