mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 07:16:03 +00:00
fhem.pl: add the bogus command to setstate usage if !$init_done (Forum #84539)
git-svn-id: https://svn.fhem.de/fhem/trunk@16227 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fcd601d4b1
commit
d6d0d333b5
@ -2876,7 +2876,8 @@ CommandSetstate($$)
|
||||
my ($cl, $param) = @_;
|
||||
|
||||
my @a = split(" ", $param, 2);
|
||||
return "Usage: setstate <name> <state>\n$namedef" if(@a != 2);
|
||||
my $addMsg = ($init_done ? "" : "Bogus command was: setstate $param");
|
||||
return "Usage: setstate <name> <state>\n${namedef}$addMsg" if(@a != 2);
|
||||
|
||||
my @rets;
|
||||
foreach my $sdev (devspec2array($a[0],$cl)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user