2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 03:44:52 +00:00

98_weekprofile.pm: internal tempMap list if attr tempMap changed

git-svn-id: https://svn.fhem.de/fhem/trunk@27006 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Risiko 2023-01-08 18:50:53 +00:00
parent 413c27fb3c
commit 4b0a584942
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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);