HMCCU: Fixed reading update bug

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11929 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
fhemzap 2016-08-09 16:15:34 +00:00
parent 780f183163
commit dc244b3b08

View File

@ -1288,10 +1288,10 @@ sub HMCCU_UpdateClientReading ($@)
my $chnadd = $channel ne '' ? $devadd.':'.$channel : $devadd;
my $hmccu_value = '';
my $dpt = '';
if ($reading =~ /.*\.(.+)$/) {
$dpt = $1;
}
# my $dpt = '';
# if ($reading =~ /.*\.(.+)$/) {
# $dpt = $1;
# }
if ($hmccu_updreadings && $updatemode ne 'client') {
$hmccu_value = HMCCU_Substitute ($value, $hmccu_substitute, 0, $reading);