2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

Avoid "unused" message for set without argument with eventMap Attribute

git-svn-id: https://svn.fhem.de/fhem/trunk@2447 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-01-07 19:45:45 +00:00
parent 144c490633
commit 4206c5626b

View File

@ -2604,7 +2604,7 @@ ReplaceEventMap($$$)
my ($dev, $str, $dir) = @_;
my $em = $attr{$dev}{eventMap};
return $str if($dir && !$em);
return @{$str} if(!$dir && (!$em || $str->[1] eq "?"));
return @{$str} if(!$dir && (!$em || int(@{$str}) < 2 || $str->[1] eq "?"));
my $dname = shift @{$str} if(!$dir);
my $nstr = join(" ", @{$str}) if(!$dir);