From 39474aaa574ea0066a77316cb1a9e95482507a6c Mon Sep 17 00:00:00 2001 From: terminet85 Date: Wed, 13 Oct 2021 16:35:27 +0200 Subject: [PATCH] DryerProgramState End (#25) * 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 adc2e363ea26b3df453fa76515001a41f0711a26. * copy branch * New DryerProgramState * rebase * Fix * Delete files * New DryerProgramState * add test file * Fix typo --- custom_components/candy/client/model.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom_components/candy/client/model.py b/custom_components/candy/client/model.py index f685cb0..2fc02a4 100644 --- a/custom_components/candy/client/model.py +++ b/custom_components/candy/client/model.py @@ -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