mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 13:29:26 +00:00
98_autocreate.pm: allow createlog for noAutocreatedFilelog (Forum #118256)
git-svn-id: https://svn.fhem.de/fhem/trunk@23637 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9f9fd8221c
commit
88645d4e5b
@ -113,8 +113,10 @@ autocreate_Notify($$)
|
||||
|
||||
my $me = $ntfy->{NAME};
|
||||
my $max = int(@{$dev->{CHANGED}});
|
||||
my $calledByCreatelog;
|
||||
my $ret = "";
|
||||
my $nrcreated;
|
||||
$calledByCreatelog = ($dev && $me eq $dev->{NAME});
|
||||
|
||||
for (my $i = 0; $i < $max; $i++) {
|
||||
|
||||
@ -256,7 +258,8 @@ autocreate_Notify($$)
|
||||
|
||||
####################
|
||||
my $fl = replace_wildcards($hash, AttrVal($me, "filelog", ""));
|
||||
$fl = undef if($modules{$hash->{TYPE}}{noAutocreatedFilelog});
|
||||
$fl = undef if($modules{$hash->{TYPE}}{noAutocreatedFilelog} &&
|
||||
!$calledByCreatelog);
|
||||
my $flname = "FileLog_$name";
|
||||
delete($defs{$flname}) if($fl); # If we are re-creating it with createlog.
|
||||
my ($gplot, $filter, $devattr) = ("", $name, "");
|
||||
|
Loading…
Reference in New Issue
Block a user