2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 01:46:08 +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:
rudolfkoenig 2018-02-20 09:04:43 +00:00
parent fcd601d4b1
commit d6d0d333b5

View File

@ -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)) {