mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-24 15:19:21 +00:00
31_HUEDevice.pm: fixed typo
git-svn-id: https://svn.fhem.de/fhem/trunk@25597 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5d225371bb
commit
521c37448c
@ -1520,7 +1520,7 @@ HUEDevice_Parse($$)
|
|||||||
#Log3 $name, 5, Dumper $result if($HUEDevice_hasDataDumper);
|
#Log3 $name, 5, Dumper $result if($HUEDevice_hasDataDumper);
|
||||||
|
|
||||||
if( !defined($hash->{has_events}) # only if not already checked
|
if( !defined($hash->{has_events}) # only if not already checked
|
||||||
&& ($result->{v2_service} || $result->{v2_service}{t}) # only for updates from events
|
&& ($result->{v2_service} || $result->{t}) # only for updates from events
|
||||||
&& defined($hash->{IODev} && $hash->{IODev}{TYPE} eq 'HUEBridge') ) {
|
&& defined($hash->{IODev} && $hash->{IODev}{TYPE} eq 'HUEBridge') ) {
|
||||||
$hash->{has_events} = $hash->{IODev}{has_v2_api} if( defined($hash->{IODev}{has_v2_api}) );
|
$hash->{has_events} = $hash->{IODev}{has_v2_api} if( defined($hash->{IODev}{has_v2_api}) );
|
||||||
$hash->{has_events} = 1 if( $hash->{IODev}{is_DECONZ} );
|
$hash->{has_events} = 1 if( $hash->{IODev}{is_DECONZ} );
|
||||||
@ -1894,9 +1894,9 @@ HUEDevice_Parse($$)
|
|||||||
if( defined($readings{$key}) ) {
|
if( defined($readings{$key}) ) {
|
||||||
if( $lastupdated ) {
|
if( $lastupdated ) {
|
||||||
my $rut = ReadingsTimestamp($name,$key,undef);
|
my $rut = ReadingsTimestamp($name,$key,undef);
|
||||||
if( !$hash->{helper}{forceUpdate}
|
if( !$hash->{helper}{forceUpdate} # not from queryAfterEvent
|
||||||
&& !defined($result->{v2_service}) && !defined($result->{t})
|
&& !defined($result->{v2_service}) && !defined($result->{t}) # not v2 event and not deconz event
|
||||||
&& $ts && defined($rut) && $ts <= time_str2num($rut) ) {
|
&& $ts && defined($rut) && $ts <= time_str2num($rut) ) { # lastupdated older than or equal to reading
|
||||||
Log3 $name, 4, "$name: ignoring reading $key with timestamp $lastupdated, current reading timestamp is $rut";
|
Log3 $name, 4, "$name: ignoring reading $key with timestamp $lastupdated, current reading timestamp is $rut";
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user