Skip to content

Commit

Permalink
Added support for DISABLED status
Browse files Browse the repository at this point in the history
Signed-off-by: Vadim Grinco <[email protected]>
  • Loading branch information
grinco committed Mar 23, 2021
1 parent 01c9760 commit 6e12e49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/garo_wallbox/garo.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Status(Enum):
CHARGING_PAUSED = 'CHARGING_PAUSED'
CHARGING_FINISHED = 'CHARGING_FINISHED'
CHARGING_CANCELLED = 'CHARGING_CANCELLED'
DISABLED = 'DISABLED'
OVERHEAT = 'OVERHEAT'
CRITICAL_TEMPERATURE = 'CRITICAL_TEMPERATURE'
INITIALIZATION = 'INITIALIZATION'
Expand Down
2 changes: 2 additions & 0 deletions custom_components/garo_wallbox/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def icon(self):
Status.CHARGING_PAUSED: "mdi:pause",
Status.CONNECTED: "mdi:power-plug",
Status.CONTACTOR_FAULT: "mdi:alert",
Status.DISABLED: "mdi:stop-circle-outline",
Status.CRITICAL_TEMPERATURE: "mdi:alert",
Status.DC_ERROR: "mdi:alert",
Status.INITIALIZATION: "mdi:timer-sand",
Expand Down Expand Up @@ -200,6 +201,7 @@ def status_as_str(self):
Status.CHARGING_CANCELLED: "Charging cancelled",
Status.CHARGING_FINISHED: "Charging finished",
Status.CHARGING_PAUSED: "Charging paused",
Status.DISABLED: "Charging disabled",
Status.CONNECTED: "Vehicle connected",
Status.CONTACTOR_FAULT: "Contactor fault",
Status.CRITICAL_TEMPERATURE: "Overtemperature, charging cancelled",
Expand Down

0 comments on commit 6e12e49

Please sign in to comment.