testing #10
@ -1,2 +1,2 @@
|
|||||||
UPD 2021-04-22_08:19:01 6866 FHEM/46_TeslaPowerwall2AC.pm
|
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
|
||||||
|
@ -179,6 +179,8 @@ qq(TeslaPowerwall2AC ($name) - defined TeslaPowerwall2AC Device with Host $host
|
|||||||
### create password object to handle pass keystore
|
### create password object to handle pass keystore
|
||||||
$hash->{helper}->{passObj} = FHEM::Core::Authentication::Passwords->new($hash->{TYPE});
|
$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 ) ) ) {
|
if ( defined( ReadPassword( $hash, $name ) ) ) {
|
||||||
my ($passResp,$passErr);
|
my ($passResp,$passErr);
|
||||||
($passResp,$passErr) = $hash->{helper}->{passObj}->setStorePassword($name,ReadPassword( $hash, $name ));
|
($passResp,$passErr) = $hash->{helper}->{passObj}->setStorePassword($name,ReadPassword( $hash, $name ));
|
||||||
@ -912,6 +914,7 @@ sub CreateUri {
|
|||||||
return ( $uri, $method, $header, $data, $path );
|
return ( $uri, $method, $header, $data, $path );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
### Kann nach einiger Zeit entfernt werden
|
||||||
sub ReadPassword {
|
sub ReadPassword {
|
||||||
my $hash = shift;
|
my $hash = shift;
|
||||||
my $name = shift;
|
my $name = shift;
|
||||||
@ -960,8 +963,7 @@ qq(TeslaPowerwall2AC ($name) - unable to read password from file: $err));
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#### kann nach einiger Zeit gelöscht werden, entferne auch Code aus der Define Fn
|
||||||
|
|
||||||
sub DeletePassword {
|
sub DeletePassword {
|
||||||
my $hash = shift;
|
my $hash = shift;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user