Patch verwendung FHEM::Core::Authentication::Passwords #4

Merged
marko merged 11 commits from patch-newPasswordStore into devel 2021-04-23 06:13:47 +00:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 4f2fe76c39 - Show all commits

View File

@ -1,2 +1,2 @@
UPD 2021-04-22_08:19:01 6866 FHEM/46_TeslaPowerwall2AC.pm
UPD 2021-04-23_05:35:13 28927 lib/FHEM/Tesla/Powerwall.pm
UPD 2021-04-23_07:00:19 29152 lib/FHEM/Tesla/Powerwall.pm

View File

@ -179,6 +179,8 @@ qq(TeslaPowerwall2AC ($name) - defined TeslaPowerwall2AC Device with Host $host
### create password object to handle pass keystore
$hash->{helper}->{passObj} = FHEM::Core::Authentication::Passwords->new($hash->{TYPE});
## kann nach einiger Zeit gelöscht werden genauso wie auch ReadPassword und DeletePassword
if ( defined( ReadPassword( $hash, $name ) ) ) {
my ($passResp,$passErr);
($passResp,$passErr) = $hash->{helper}->{passObj}->setStorePassword($name,ReadPassword( $hash, $name ));
@ -912,6 +914,7 @@ sub CreateUri {
return ( $uri, $method, $header, $data, $path );
}
### Kann nach einiger Zeit entfernt werden
sub ReadPassword {
my $hash = shift;
my $name = shift;
@ -960,8 +963,7 @@ qq(TeslaPowerwall2AC ($name) - unable to read password from file: $err));
return;
}
#### kann nach einiger Zeit gelöscht werden, entferne auch Code aus der Define Fn
sub DeletePassword {
my $hash = shift;