95_Astro.pm: Neue Version mit geänderter Update-Policy
git-svn-id: https://svn.fhem.de/fhem/trunk@17177 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -47,7 +47,7 @@ my $deltaT = 65; # Correction time in s
|
||||
my %Astro;
|
||||
my %Date;
|
||||
|
||||
my $astroversion = 1.48;
|
||||
my $astroversion = 1.49;
|
||||
|
||||
#-- These we may get on request
|
||||
my %gets = (
|
||||
@@ -1351,9 +1351,9 @@ sub Astro_Update($@) {
|
||||
|
||||
readingsBeginUpdate($hash);
|
||||
foreach my $key (keys %Astro){
|
||||
readingsBulkUpdate($hash,$key,$Astro{$key});
|
||||
readingsBulkUpdateIfChanged($hash,$key,$Astro{$key});
|
||||
}
|
||||
readingsEndUpdate($hash,0);
|
||||
readingsEndUpdate($hash,1);
|
||||
readingsSingleUpdate($hash,"state","Updated",1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user