Fix: Warnings

git-svn-id: https://svn.fhem.de/fhem/trunk@22671 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hexenmeister 2020-08-25 20:52:26 +00:00
parent b07271e912
commit 61d1ec4c7c

View File

@ -31,7 +31,7 @@ use strict;
use warnings;
use Data::Dumper;
my $VERSION = "0.9.7";
my $VERSION = "0.9.8";
my $DEFAULT_INTERVAL = 60; # in minuten
@ -404,6 +404,7 @@ sub SMARTMON_readDeviceData($%) {
my $line = $dev_data[0];
shift @dev_data;
my($k,$v) = split(/:\s*/,$line);
if(defined $v) {
$v = trim($v);
if($k eq "Device Model") {
$hash->{DEVICE_MODEL}=$v;
@ -423,6 +424,7 @@ sub SMARTMON_readDeviceData($%) {
}
}
}
}
}