2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-19 18:56:03 +00:00

33_readingsHistory.pm: small cleanup

git-svn-id: https://svn.fhem.de/fhem/trunk@10017 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2015-11-26 22:10:59 +00:00
parent 1678191cad
commit 595fcc4700

View File

@ -426,9 +426,7 @@ readingsHistory_Notify($$)
}
}
my @parts = split(/: /,$s);
my $reading = shift @parts;
my $value = join(": ", @parts);
my ($reading,$value) = split(": ", $s, 2);
$reading = "" if( !defined($reading) );
next if( $reading =~ m/^\./);