36_KeyValueProtocol.pm: improved empty value detection

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20300 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
HCS 2019-10-03 18:47:47 +00:00
parent 84f6b85913
commit 74f96c0112

View File

@ -176,7 +176,7 @@ sub KeyValueProtocol_Parse($$) {
$key = $newKey if ($newKey);
}
readingsBulkUpdate($rhash, $key, $value) if ($value);
readingsBulkUpdate($rhash, $key, $value) if ($value ne "");
}
readingsEndUpdate($rhash, 1);