Skip to content

Commit

Permalink
DryerProgramState End (#25)
Browse files Browse the repository at this point in the history
* Add tumble dryer support and it translation

* Add it.json translate

* Remove TODO

* fix ambiguous clean_filter var

* fix ambiguous water_tank var

* fix ambiguous door_state var

* Added new attributes

* Fix attributes test value

* New DryerProgramState found

* d

* d

* Copy branch

* Revert "Fix attributes test value"

This reverts commit adc2e36.

* copy branch

* New DryerProgramState

* rebase

* Fix

* Delete files

* New DryerProgramState

* add test file

* Fix typo
  • Loading branch information
terminet85 authored Oct 13, 2021
1 parent ec5a26b commit 39474aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/candy/client/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,15 @@ def __str__(self):
class DryerProgramState(Enum):
STOPPED = 0
RUNNING = 2
END = 3

def __str__(self):
if self == DryerProgramState.STOPPED:
return "Stopped"
elif self == DryerProgramState.RUNNING:
return "Running"
elif self == DryerProgramState.END:
return "End"
else:
return "%s" % self

Expand Down

0 comments on commit 39474aa

Please sign in to comment.