mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
10_MQTT2_DEVICE.pm: fix WARNING if message is empty (Forum #90145)
git-svn-id: https://svn.fhem.de/fhem/trunk@17928 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9405a42422
commit
96f57899d4
@ -116,7 +116,8 @@ MQTT2_DEVICE_Parse($$)
|
|||||||
readingsBeginUpdate($hash);
|
readingsBeginUpdate($hash);
|
||||||
foreach my $k (keys %{$ret}) {
|
foreach my $k (keys %{$ret}) {
|
||||||
readingsBulkUpdate($hash, $k, $ret->{$k});
|
readingsBulkUpdate($hash, $k, $ret->{$k});
|
||||||
push(@retData, "$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);
|
||||||
|
Loading…
Reference in New Issue
Block a user