fix bug in delete command

This commit is contained in:
Marko Oldenburg 2017-10-15 21:42:31 +02:00
parent 5afdb2111c
commit 0566890651

View File

@ -66,7 +66,7 @@ use HttpUtils;
eval "use JSON;1" or $missingModul .= "JSON "; eval "use JSON;1" or $missingModul .= "JSON ";
my $version = "0.1.5"; my $version = "0.1.8";
@ -282,7 +282,7 @@ sub TeslaPowerwall2AC_Timer_GetData($) {
my $name = $hash->{NAME}; my $name = $hash->{NAME};
delete $hash->{actionQueue} = [] if( defined($hash->{actionQueue}) and scalar(@{$hash->{actionQueue}}) > 0 ); delete $hash->{actionQueue} if( defined($hash->{actionQueue}) and scalar(@{$hash->{actionQueue}}) > 0 );
RemoveInternalTimer($hash); RemoveInternalTimer($hash);
# ensure actionQueue exists # ensure actionQueue exists