91_notify.pm: do not set STATE to active if showtime==0 (Forum #119884)

git-svn-id: https://svn.fhem.de/fhem/trunk@24094 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2021-03-26 19:30:56 +00:00
parent b85430192b
commit e8dbb8f641

View File

@@ -122,8 +122,7 @@ notify_Exec($$)
Log3 $ln, 3, "$ln return value: $r" if($r);
$ret .= " $r" if($r);
$ntfy->{TRIGGERTIME} = $now;
$ntfy->{STATE} =
AttrVal($ln,'showtime',1) ? $dev->{NTFY_TRIGGERTIME} : 'active';
$ntfy->{STATE} = $dev->{NTFY_TRIGGERTIME} if(AttrVal($ln,'showtime',1));
last if($dat);
}
}