change readingsBulkUpdate to readingsBulkUpdateIfChanged

This commit is contained in:
Marko Oldenburg 2017-10-26 07:59:06 +02:00
parent 30922717e1
commit 96049ae1f9

View File

@ -1116,7 +1116,7 @@ sub SmarterCoffee_UpdateReadings($$;$) {
my $changed = ReadingsVal($hash->{NAME}, $name, "##undefined") ne $value;
if ($changed or $forceUpdate) {
readingsBulkUpdate($hash, $name, $value);
readingsBulkUpdateIfChanged($hash, $name, $value);
$updated = 1 if ($changed);
}