2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 01:06:04 +00:00

98_Hyperion: SetExtensionsCancel simplification

git-svn-id: https://svn.fhem.de/fhem/trunk@13321 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
deespe 2017-02-03 11:42:21 +00:00
parent 6eba6fc509
commit 2cd921abd0

View File

@ -14,9 +14,9 @@ use warnings;
use Color;
use DevIo;
use JSON;
use SetExtensions;
use DevIo;
my %Hyperion_sets =
(
@ -784,21 +784,10 @@ sub Hyperion_Set($@)
if (scalar keys %obj)
{
Log3 $name,5,"$name: $cmd obj json: ".encode_json(\%obj);
if (!$hash->{InSetExtensions})
{
SetExtensionsCancel($hash);
my $at = $name."_till";
CommandDelete(undef,$at)
if ($defs{$at});
Log3 $name,4,"$name SetExtensionsCancel";
}
Hyperion_Call($hash,\%obj);
return undef;
}
$hash->{InSetExtensions} = 1;
my $ret = SetExtensions($hash,$params,$name,@aa);
delete $hash->{InSetExtensions};
return $ret;
return SetExtensions($hash,$params,$name,@aa);
}
sub Hyperion_Attr(@)