2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 07:16:03 +00:00

HMInfo:improve configCheck

git-svn-id: https://svn.fhem.de/fhem/trunk@22346 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2020-07-04 09:47:44 +00:00
parent a9de630579
commit 30c2a156f7

View File

@ -1364,6 +1364,7 @@ sub HMinfo_GetFn($@) {#########################################################
$ret = $cmd." done:" .HMinfo_peerCheck(@entities);
}
elsif($cmd eq "configCheck"){##check peers and register----------------------
if ($hash->{CL}){
$defs{$name}{helper}{cfgChkResult} = "";
my $id = ++$hash->{nb}{cnt};
@ -2931,9 +2932,14 @@ sub HMinfo_templateChk(@){#####################################################
$repl = " no peer:$pName - ".ReadingsVal($aName,"peerList" ,"")."\n";
}
else{
my $pRnm = $pName ? $pName."-" : "";
my $pRnm = "";
if ($pName){
$pRnm = $pName.(($defs{$pName}{helper}{role}{dev})?"_chn-01-":"-");
if (defined $defs{$pName} && $defs{$pName}{helper}{role}{dev}){
$pRnm = $pName."_chn-01-";
}
else{
$pRnm = $pName."-";
}
}
my $pRnmLS = $pTyp eq "long"?"lg":($pTyp eq "short"?"sh":"");
foreach my $rn (keys%{$HMConfig::culHmTpl{$tmpl}{reg}}){