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:
parent
413c27fb3c
commit
4b0a584942
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user