This commit is contained in:
Paulus Schoutsen 2015-09-19 12:29:23 -07:00
parent 6c1f44242c
commit ec1d5e617e
8 changed files with 37 additions and 10 deletions

View file

@ -79,11 +79,11 @@ def if_action(hass, config):
now = dt_util.now()
if before is not None and now > now.replace(hour=before.hour,
minute=before.minute):
return False
return False
if after is not None and now < now.replace(hour=after.hour,
minute=after.minute):
return False
return False
if weekday is not None:
now_weekday = WEEKDAYS[now.weekday()]