diff --git a/fhem/CHANGED b/fhem/CHANGED index 321d59aea..fd6479df3 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_weekprofile.pm: internal tempMap list if attr tempMap changed - feature: 59_Weather: fix multiple issues in API modules - feature: 59_Weather: support for new openweathermap mod onecall - rewrite old parts of api modules diff --git a/fhem/FHEM/98_weekprofile.pm b/fhem/FHEM/98_weekprofile.pm index dcf7cd261..e1bd56f34 100644 --- a/fhem/FHEM/98_weekprofile.pm +++ b/fhem/FHEM/98_weekprofile.pm @@ -1410,6 +1410,9 @@ sub weekprofile_createTempMap($;$) { my ($hash, $attrMap) = @_; my $me = $hash->{NAME}; + #clear map + %{$hash->{TEMPMAP}} = (); + my $tempOn = AttrVal($me,"tempON", undef); if (defined($tempOn)) { $hash->{TEMPMAP}->{'on'} = tempValue($tempOn);