24_TPLinkHS110: Fixed wrong set arguments if module is disabled

git-svn-id: https://svn.fhem.de/fhem/trunk@16933 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
vk 2018-07-02 16:02:15 +00:00
parent 5510eae02e
commit 25a931a47e

View File

@ -249,7 +249,7 @@ sub TPLinkHS110_Set($$)
my $cmdList = "on off";
my($success,$json,$realtimejson);
return "\"set $name\" needs at least one argument" unless(defined($cmd));
return "Device disabled in config" if ($attr{$name}{"disable"} eq "1");
return if ($attr{$name}{"disable"} eq "1");
Log3 $hash, 3, "TPLinkHS110: $name Set <". $cmd ."> called" if ($cmd !~ /\?/);
my $command="";