Skip to content

Commit 0125861

Browse files
author
Robert Schindler
committed
[schedy] Improved logging in Schedule.evaluate()
1 parent f96b8dd commit 0125861

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

hass_apps/schedy/schedule.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,13 +422,12 @@ def log(
422422

423423
last_rule = path.rules[-1]
424424
if isinstance(last_rule, SubScheduleRule):
425-
log("{} [descending]".format(path), path, level="DEBUG")
425+
log("[SUB] {}".format(path), path, level="DEBUG")
426426
continue
427427
elif not path.is_active(when):
428-
log("{} [inactive]".format(path), path, level="DEBUG")
428+
log("[INA] {}".format(path), path, level="DEBUG")
429429
continue
430-
else:
431-
log("{}".format(path), path, level="DEBUG")
430+
log("[ACT] {}".format(path), path, level="DEBUG")
432431

433432
result = None
434433
for rule in reversed(path.rules_with_expr_or_value):

0 commit comments

Comments
 (0)