30_HUEBridge.pm: checkin correct version...

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16174 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2018-02-14 06:26:45 +00:00
parent 6c321c5bf7
commit d41f36a4c8

View File

@ -635,8 +635,9 @@ HUEBridge_Set($@)
my $result;
if( $hash->{helper}{apiversion} && $hash->{helper}{apiversion} >= (1<<16) + (11<<8) ) {
$result = HUEBridge_Call($hash, undef, "scenes/$arg/lights/$light/state", \%obj, 'PUT');
else
} else {
$result = HUEBridge_Call($hash, undef, "scenes/$arg/lightstates/$light", \%obj, 'PUT');
}
return $result->{error}{description} if( $result->{error} );
return undef;