10_ZWave.pm: avoid the "unknown command message at init (Forum #53190)

git-svn-id: https://svn.fhem.de/fhem/trunk@11420 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2016-05-09 14:30:09 +00:00
parent c92197809f
commit 163bc6de60

View File

@@ -660,7 +660,9 @@ sub
ZWave_execInits($$;$)
{
my ($hash, $min, $cfg) = @_; # min = 50 for model-specific stuff
my @clList = split(" ", $attr{$hash->{NAME}}{classes});
my $cl = $attr{$hash->{NAME}}{classes};
return "" if(!$cl);
my @clList = split(" ", $cl);
my (@initList, %seen);
foreach my $cl (@clList) {
@@ -687,7 +689,7 @@ ZWave_execInits($$;$)
my $ret = AnalyzeCommand(undef, $cmd);
Log 1, "ZWAVE INIT: $cmd: $ret" if ($ret);
}
return "";
}