From d9a9490535454fccdbf28acea917432e61d29b33 Mon Sep 17 00:00:00 2001 From: rospogrigio Date: Thu, 1 Oct 2020 12:50:22 +0200 Subject: [PATCH] Slight coding improvement --- custom_components/localtuya/cover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/localtuya/cover.py b/custom_components/localtuya/cover.py index 4df67f2..581801e 100644 --- a/custom_components/localtuya/cover.py +++ b/custom_components/localtuya/cover.py @@ -33,7 +33,7 @@ COVER_MODE_NONE = "none" COVER_MODE_POSITION = "position" COVER_MODE_FAKE = "fake" -DEFAULT_OPENCLOSE_CMDS = "on_off" +DEFAULT_OPENCLOSE_CMDS = COVER_ONOFF_CMDS DEFAULT_POSITIONING_MODE = COVER_MODE_NONE DEFAULT_SPAN_TIME = 25.0