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:
justme-1968 2016-05-30 18:08:01 +00:00
parent 31eed6eacc
commit fc7dee9d1a

View File

@ -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;