From 98014d2fcd5e5eadbd2b19f7bbaa79b7904854e1 Mon Sep 17 00:00:00 2001 From: fladdy <> Date: Sun, 23 Sep 2012 08:51:37 +0000 Subject: [PATCH] small bug fix git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@1884 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- contrib/58_SecvestIP.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/58_SecvestIP.pm b/contrib/58_SecvestIP.pm index fdf3f5309..db344689d 100644 --- a/contrib/58_SecvestIP.pm +++ b/contrib/58_SecvestIP.pm @@ -77,13 +77,13 @@ sub SecvestIP_Set($$$) { my ($hash, $name ,$cmd) = @_; + # Get current SecvestIP state + SecvestIP_Get($hash); + return "Unknown argument $cmd, choose one of state:Set,Unset,PartSet" if ($cmd eq "?"); Log 1, "SecvestIP: Set $name $cmd"; - # Get current SecvestIP state - SecvestIP_Get($hash); - my $url = 'http://'.$hash->{HOST}.'/'; my $agent = LWP::UserAgent->new(