Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions custom_components/pyscript/trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,9 @@ def timer_active_check(cls, time_spec, now):
this_match = start <= now <= end
else: # Over midnight
this_match = now >= start or now <= end
else:
_LOGGER.error("Invalid time_active expression: %s", active_str)
return False

if negate:
results["-"].append(not this_match)
Expand Down