30_HUEBridge.pm: fixed api version check for modifyscene

git-svn-id: https://svn.fhem.de/fhem/trunk@16178 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2018-02-14 14:36:28 +00:00
parent 35c7d721f4
commit ec0e35a524

View File

@@ -635,9 +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 {
$result = HUEBridge_Call($hash, undef, "scenes/$arg/lightstates/$light", \%obj, 'PUT');
} else {
$result = HUEBridge_Call($hash, undef, "scenes/$arg/lights/$light/state", \%obj, 'PUT');
}
return $result->{error}{description} if( $result->{error} );