mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
31_HUEDevice.pm: LIGHTIFY optimization
git-svn-id: https://svn.fhem.de/fhem/trunk@11569 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
31eed6eacc
commit
fc7dee9d1a
@ -1182,6 +1182,8 @@ HUEDevice_Parse($$)
|
|||||||
|
|
||||||
$hash->{helper}{percent} = $percent;
|
$hash->{helper}{percent} = $percent;
|
||||||
|
|
||||||
|
my $changed = $hash->{CHANGED}?1:0;
|
||||||
|
|
||||||
if( $s ne $hash->{STATE} ) {readingsBulkUpdate($hash,"state",$s);}
|
if( $s ne $hash->{STATE} ) {readingsBulkUpdate($hash,"state",$s);}
|
||||||
|
|
||||||
readingsEndUpdate($hash,1);
|
readingsEndUpdate($hash,1);
|
||||||
@ -1194,6 +1196,8 @@ HUEDevice_Parse($$)
|
|||||||
|
|
||||||
$hash->{helper}->{update_timeout} = -1;
|
$hash->{helper}->{update_timeout} = -1;
|
||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
|
|
||||||
|
return $changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user