From 96049ae1f93385657cd0ab56f2aa5c5773a9157f Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Thu, 26 Oct 2017 07:59:06 +0200 Subject: [PATCH] change readingsBulkUpdate to readingsBulkUpdateIfChanged --- 98_SmarterCoffee.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/98_SmarterCoffee.pm b/98_SmarterCoffee.pm index 6a177b8..cc364e3 100644 --- a/98_SmarterCoffee.pm +++ b/98_SmarterCoffee.pm @@ -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); }