This commit is contained in:
Marko Oldenburg 2021-03-27 16:41:18 +01:00
parent d6f6b0c1bb
commit f44373f611
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
UPD 2021-03-27_15:47:11 6982 FHEM/46_TeslaPowerwall2AC.pm
UPD 2021-03-27_16:39:34 28868 lib/FHEM/Tesla/Powerwall.pm
UPD 2021-03-27_16:41:12 28868 lib/FHEM/Tesla/Powerwall.pm

View File

@ -392,7 +392,7 @@ sub Set {
elsif ( lc $cmd eq 'setpassword' ) {
return q{please set Attribut emailaddr first}
if ( AttrVal( $name, 'emailaddr', 'none' ) eq 'none' );
return qq(usage: ${cmd} pass=<password>) if ( scalar( @{$aArg} ) != 2
return qq(usage: ${cmd} pass=<password>) if ( scalar( @{$aArg} ) != 0
|| scalar(keys %{$hArg}) != 1 );
StorePassword( $hash, $name, $hArg->{'pass'} );