2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +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:
rudolfkoenig 2018-12-09 11:00:24 +00:00
parent 9405a42422
commit 96f57899d4

View File

@ -116,7 +116,8 @@ MQTT2_DEVICE_Parse($$)
readingsBeginUpdate($hash);
foreach my $k (keys %{$ret}) {
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});
}
readingsEndUpdate($hash, 1);