fix the 'off' -> 'on' -> 'off' switches

This commit is contained in:
Bas Nijholt 2020-09-27 00:06:31 +02:00
commit 5ee3575efd
2 changed files with 56 additions and 18 deletions

View file

@ -42,6 +42,8 @@ SERVICE_APPLY = "apply"
CONF_COLORS_ONLY = "colors_only"
CONF_ON_LIGHTS_ONLY = "on_lights_only"
TURNING_OFF_DELAY = 5
def int_between(a, b):
"""Return an integer between 'a' and 'b'."""