fix Useless use of a constant ("no user credential attribut") in void context
geändert: lib/FHEM/backupToStorage.pm
This commit is contained in:
parent
3a9ffbc6cd
commit
e81cde3887
@ -1,2 +1,2 @@
|
||||
UPD 2020-06-17_15:03:50 3368 FHEM/98_backupToStorage.pm
|
||||
UPD 2020-06-17_14:54:41 10040 lib/FHEM/backupToStorage.pm
|
||||
UPD 2020-06-17_15:11:58 10052 lib/FHEM/backupToStorage.pm
|
||||
|
@ -380,13 +380,13 @@ sub CheckAttributsForCredentials {
|
||||
my $ncPath = AttrVal( $name, 'bTS_Path', 'none' );
|
||||
my $status = 'ready';
|
||||
|
||||
$status eq 'ready'
|
||||
$status = ($status eq 'ready'
|
||||
&& $ncUser eq 'none' ? 'no user credential attribut'
|
||||
: $status eq 'ready'
|
||||
&& $ncHost eq 'none' ? 'no host credential attribut'
|
||||
: $status eq 'ready'
|
||||
&& !defined($ncPass) ? 'no password set'
|
||||
: $status;
|
||||
: $status);
|
||||
|
||||
return readingsSingleUpdate( $hash, 'state', $status, 1 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user