2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

fix of fix for CHANGED reading handling in 59_Weather.pm

git-svn-id: https://svn.fhem.de/fhem/trunk@1206 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2012-01-22 15:54:51 +00:00
parent b6c9146469
commit 8ffdb0e62f

View File

@ -60,9 +60,9 @@ sub Weather_UpdateReading($$$$$$) {
$r->{$reading}{VAL} = $value;
my $name= $hash->{NAME};
Log 1, "Weather $name: $reading= $value";
# Log 1, "Weather $name: $reading= $value";
$hash->{CHANGED}[$n]= "$key: $value";
$hash->{CHANGED}[$n]= "$reading: $value";
return 1;
}
@ -125,6 +125,11 @@ sub Weather_GetUpdate($)
}
}
if(!$hash->{LOCAL}) {
DoTrigger($name, undef) if($init_done);
}
return 1;
}