mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
31_HUEDevice.pm: fixed warning for deconz events
git-svn-id: https://svn.fhem.de/fhem/trunk@25538 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1d0f53d406
commit
fe19a7ddf4
@ -1804,10 +1804,6 @@ HUEDevice_Parse($$)
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
# how can this happen?
|
||||
Log3 $name, 1, "$name: HUEDevice_Parse called without \$result->{state}: ". ($HUEDevice_hasDataDumper?Dumper $result:'');
|
||||
|
||||
}
|
||||
|
||||
CommandDeleteReading( undef, "$name .lastupdated" );
|
||||
@ -1819,13 +1815,13 @@ HUEDevice_Parse($$)
|
||||
my $i = 0;
|
||||
foreach my $key ( keys %readings ) {
|
||||
if( defined($readings{$key}) ) {
|
||||
if( $lastupdated ) {
|
||||
my $rut = ReadingsTimestamp($name,$key,undef);
|
||||
if( !defined($result->{v2_service}) && $ts && defined($rut) && $ts <= time_str2num($rut) ) {
|
||||
Log3 $name, 4, "$name: ignoring reading $key with timestamp $lastupdated, current reading timestamp is $rut";
|
||||
next;
|
||||
}
|
||||
|
||||
if( $lastupdated ) {
|
||||
$hash->{'.updateTimestamp'} = $lastupdated;
|
||||
$hash->{CHANGETIME}[$i] = $lastupdated;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user