10_MQTT2_DEVICE.pm: remove unused code (Forum #111938)
git-svn-id: https://svn.fhem.de/fhem/trunk@22458 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -158,7 +158,6 @@ MQTT2_DEVICE_Parse($$)
|
|||||||
"$cid:$topic:$value" =~ m/^$reRepl$/s));
|
"$cid:$topic:$value" =~ m/^$reRepl$/s));
|
||||||
next if(IsDisabled($dev));
|
next if(IsDisabled($dev));
|
||||||
|
|
||||||
my @retData;
|
|
||||||
Log3 $dev, 4, "MQTT2_DEVICE_Parse: $dev $topic => $code";
|
Log3 $dev, 4, "MQTT2_DEVICE_Parse: $dev $topic => $code";
|
||||||
|
|
||||||
if($code =~ m/^{.*}$/s) {
|
if($code =~ m/^{.*}$/s) {
|
||||||
@@ -171,7 +170,6 @@ MQTT2_DEVICE_Parse($$)
|
|||||||
foreach my $k (keys %{$ret}) {
|
foreach my $k (keys %{$ret}) {
|
||||||
readingsBulkUpdate($hash, makeReadingName($k), $ret->{$k});
|
readingsBulkUpdate($hash, makeReadingName($k), $ret->{$k});
|
||||||
my $msg = ($ret->{$k} ? $ret->{$k} : "");
|
my $msg = ($ret->{$k} ? $ret->{$k} : "");
|
||||||
push(@retData, "$k $msg");
|
|
||||||
checkForGet($hash, $k, $ret->{$k});
|
checkForGet($hash, $k, $ret->{$k});
|
||||||
}
|
}
|
||||||
readingsEndUpdate($hash, 1);
|
readingsEndUpdate($hash, 1);
|
||||||
@@ -179,7 +177,6 @@ MQTT2_DEVICE_Parse($$)
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
readingsSingleUpdate($hash, $code, $value, 1);
|
readingsSingleUpdate($hash, $code, $value, 1);
|
||||||
push(@retData, "$code $value");
|
|
||||||
checkForGet($hash, $code, $value);
|
checkForGet($hash, $code, $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user