mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
HMInfo: minor fix
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20889 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2995de3ac4
commit
340500e7f7
@ -205,9 +205,7 @@ sub HMinfo_Notify(@){##########################################################
|
||||
HMinfo_archConfig($hash,$name,"","") if(AttrVal($name,"autoArchive",undef));
|
||||
}
|
||||
if (grep /INITIALIZED/,@{$events}){
|
||||
HMinfo_SetFn($hash,$name,"loadConfig")
|
||||
if ( grep (/INITIALIZED/,@{$events})
|
||||
&& (substr(AttrVal($name, "autoLoadArchive", 0),0,1) ne 0));
|
||||
HMinfo_SetFn($hash,$name,"loadConfig") if ( substr(AttrVal($name, "autoLoadArchive", 0),0,1) ne 0);
|
||||
|
||||
}
|
||||
return undef;
|
||||
@ -1938,7 +1936,7 @@ sub HMinfo_loadConfig($@) {####################################################
|
||||
my @entryNF = ();
|
||||
my %changes;
|
||||
my @rUpdate;
|
||||
my @tmplList = (); #collect templates
|
||||
my @tmplList = (); #collect template definitions
|
||||
while(<rFile>){
|
||||
chomp;
|
||||
my $line = $_;
|
||||
@ -1965,12 +1963,14 @@ sub HMinfo_loadConfig($@) {####################################################
|
||||
if ($eN eq "templateStart"){#if new block we remove all old templates
|
||||
@tmplList = ();
|
||||
}
|
||||
else {
|
||||
push @tmplList,$line;
|
||||
}
|
||||
}
|
||||
elsif($cmd1 eq "templateSet"){
|
||||
my (undef,$eNt,$tpl,$param) = split("=>",$line);
|
||||
if (defined($defs{$eNt})){
|
||||
if($tpl eq "start"){
|
||||
if($tpl eq "start"){ # no template defined, or deleted - remove it.
|
||||
delete $defs{$eNt}{helper}{tmpl};
|
||||
}
|
||||
else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user