fix setter bug
This commit is contained in:
parent
37673b2da1
commit
0e1468a032
@ -1,2 +1,2 @@
|
||||
UPD 2020-10-20_15:51:15 6126 FHEM/98_backupToStorage.pm
|
||||
UPD 2020-10-24_09:53:27 16478 lib/FHEM/backupToStorage.pm
|
||||
UPD 2020-10-24_09:56:25 16492 lib/FHEM/backupToStorage.pm
|
||||
|
@ -295,11 +295,11 @@ sub Set {
|
||||
DeletePassword($hash);
|
||||
}
|
||||
else {
|
||||
my $list = 'active,inactive';
|
||||
my $list = 'active:noArg inactive:noArg';
|
||||
$list .= (
|
||||
defined( ReadPassword( $hash, $name ) )
|
||||
? 'deletepassword:noArg'
|
||||
: 'addpassword'
|
||||
? ' deletepassword:noArg'
|
||||
: ' addpassword'
|
||||
);
|
||||
|
||||
return 'Unknown argument ' . $cmd . ', choose one of ' . $list;
|
||||
|
Loading…
x
Reference in New Issue
Block a user