mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
Fix: Warnings
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@22671 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
14215f9a2f
commit
e67da23abd
@ -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($%) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user