From 9def5a8ee3f427c7cbc440e761f93ece12835c9c Mon Sep 17 00:00:00 2001 From: storm64 Date: Thu, 17 Nov 2022 17:09:18 +0100 Subject: [PATCH] [sleeplogalarm] Don't show own alarm --- apps/sleeplogalarm/lib.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/sleeplogalarm/lib.js b/apps/sleeplogalarm/lib.js index f38945fb4..716c69c3d 100644 --- a/apps/sleeplogalarm/lib.js +++ b/apps/sleeplogalarm/lib.js @@ -9,7 +9,8 @@ function getNextAlarm(allAlarms, from, to, msg, withId) { }); // return next active alarms in range return allAlarms.filter( - a => a.on && !a.timer && a.t >= from && a.t < to && (!msg || a.msg.includes(msg)) + a => a.on && !a.timer && a.id !== "sleeplog" && + a.t >= from && a.t < to && (!msg || a.msg.includes(msg)) ).map(a => { // add time to alarm a.tTo = sched.getTimeToAlarm(a); return a;