mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
24_TPLinkHS110: Fixed wrong set arguments if module is disabled
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16933 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e5f24d238c
commit
3a094d8933
@ -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="";
|
||||
|
Loading…
x
Reference in New Issue
Block a user