Skip to content

Commit

Permalink
Add missing status code 83 and 84
Browse files Browse the repository at this point in the history
  • Loading branch information
Moustachauve committed Feb 9, 2024
1 parent f9d5ecf commit 74024db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/technove/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class Status(Enum):
UNPLUGGED = "unplugged"
PLUGGED_WAITING = "plugged_waiting"
PLUGGED_CHARGING = "plugged_charging"
OUT_OF_ACTIVATION_PERIOD = "out_of_activation_period"
HIGH_CHARGE_PERIOD = "high_charge_period"

@classmethod
def build(cls: type[Status], status: int) -> Status:
Expand All @@ -24,6 +26,8 @@ def build(cls: type[Status], status: int) -> Status:
65: Status.UNPLUGGED,
66: Status.PLUGGED_WAITING,
67: Status.PLUGGED_CHARGING,
83: Status.OUT_OF_ACTIVATION_PERIOD,
84: Status.HIGH_CHARGE_PERIOD,
}

if status in statuses:
Expand Down

0 comments on commit 74024db

Please sign in to comment.