33_readingsGroup.pm: fixed some warnings

git-svn-id: https://svn.fhem.de/fhem/trunk@14033 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2017-04-19 12:26:13 +00:00
parent a1cbbda953
commit 6e88cba7dd

View File

@@ -257,6 +257,8 @@ rgVal2Num($)
{
my ($val) = @_;
return $val if( !defined($val) );
#$val =~ s/[^-\.\d]//g if( defined($val) );
$val = ($val =~ /(-?\d+(\.\d+)?)/ ? $1 : "");
@@ -1381,8 +1383,6 @@ readingsGroup_Notify($$)
my $value_style = lookup2($hash->{helper}{valueStyle},$n,$reading,$value);
my $value = $value;
my $value_orig = $value;
if( my $value_format = $hash->{helper}{valueFormat} ) {
my $value_format = lookup2($hash->{helper}{valueFormat},$n,$reading,$value);