mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +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:
parent
144c490633
commit
4206c5626b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user