10_IT.pm: don't give "Undefined value" messages as was with r6818

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6979 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-11-15 10:15:10 +00:00
parent 02d3ae60f2
commit e3b457892a

View File

@ -62,9 +62,10 @@ IT_SetState($$$$)
{ {
my ($hash, $tim, $vt, $val) = @_; my ($hash, $tim, $vt, $val) = @_;
return undef;
$val = $1 if($val =~ m/^(.*) \d+$/); $val = $1 if($val =~ m/^(.*) \d+$/);
return "Undefined value $val" if(!defined($it_c2b{$val})); return "Undefined value $val" if(!defined($it_c2b{$val}));
return undef;
} }
############################# #############################