2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

31_HUEDevice.pm: cancel -till commands

git-svn-id: https://svn.fhem.de/fhem/trunk@12682 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-11-29 09:14:56 +00:00
parent fa4fd4beb1
commit d235253ec9

View File

@ -750,7 +750,11 @@ HUEDevice_Set($@)
$result = HUEDevice_ReadFromServer($hash,"$hash->{ID}/state",\%obj);
}
SetExtensionsCancel($hash) if( !$hash->{InSetExtensions} );
if( !$hash->{InSetExtensions} ) {
SetExtensionsCancel($hash);
my $at = $name ."_till";
CommandDelete(undef, $at) if($defs{$at});
}
if( defined($result) && $result->{'error'} ) {
$hash->{STATE} = $result->{'error'}->{'description'};