From fffc5cf0ac9509443020d9eb9347985dfa8d4660 Mon Sep 17 00:00:00 2001 From: marvin78 Date: Thu, 30 Apr 2020 11:19:31 +0000 Subject: [PATCH] 98_todoist: bugfix readingsBeginUpdate first, Forum: #1048705 git-svn-id: https://svn.fhem.de/fhem/trunk@21815 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/98_todoist.pm | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 762a6ade4..295800a9c 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix 98_todoist: Forum: #1048705 - bugfix: 74_GardenaSmartDevice: setter from mower not visible - bugfix: 74_GardenaSmartDevice: fix watering_computer state - feature: 77_UWZ: add disableForIntervals, fix searchAreaID Fn and bugfix diff --git a/fhem/FHEM/98_todoist.pm b/fhem/FHEM/98_todoist.pm index 35f756f7b..b06a794de 100644 --- a/fhem/FHEM/98_todoist.pm +++ b/fhem/FHEM/98_todoist.pm @@ -17,7 +17,7 @@ eval "use Date::Parse;1" or $missingModule .= "Date::Parse "; ####################### # Global variables -my $version = "1.3.7"; +my $version = "1.3.8"; my $srandUsed; @@ -1145,15 +1145,14 @@ sub todoist_GetTasksCallback($$$){ } } } - + + readingsEndUpdate( $hash, 1 ); + ## list Text for TTS, Text-Message... if ($param->{completed} != 1) { $lText="-" if ($lText eq ""); - readingsBulkUpdate($hash,"listText",$lText) if ($lText ne ""); + readingsSingleUpdate($hash,"listText",$lText,1) if ($lText ne ""); } - - - readingsEndUpdate( $hash, 1 ); RemoveInternalTimer($hash,"todoist_GetTasks"); InternalTimer(gettimeofday()+$hash->{INTERVAL}, "todoist_GetTasks", $hash, 0); ## loop with Interval