30_LIGHTIFY.pm: fixed my $var = ... if( ... );

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@23869 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2021-03-01 08:24:40 +00:00
parent 9416d87c5d
commit 6af4ff5212

View File

@ -934,7 +934,8 @@ LIGHTIFY_Parse($$)
$json = LIGHTIFY_toJson($hash, $chash, $id, $reachable, $onoff, $dim, $ct, $r, $g, $b);
}
my $changed = HUEDevice_Parse( $chash, $json ) if( $chash );
my $changed;
$changed = HUEDevice_Parse( $chash, $json ) if( $chash );
if( $changed || $chash->{helper}{transitiontime} ) {
RemoveInternalTimer($chash);
InternalTimer(gettimeofday()+1, "HUEDevice_GetUpdate", $chash, 0);