devel #9

Merged
marko merged 17 commits from devel into testing 2021-07-05 11:15:19 +00:00
2 changed files with 7 additions and 5 deletions
Showing only changes of commit 0c937e252e - Show all commits

View File

@ -1,2 +1,2 @@
UPD 2021-04-20_21:40:31 6866 FHEM/46_TeslaPowerwall2AC.pm UPD 2021-04-20_21:40:31 6866 FHEM/46_TeslaPowerwall2AC.pm
UPD 2021-04-20_21:50:19 30167 lib/FHEM/Tesla/Powerwall.pm UPD 2021-04-20_21:55:17 30201 lib/FHEM/Tesla/Powerwall.pm

View File

@ -1029,16 +1029,18 @@ sub Rename {
my $new = shift; my $new = shift;
my $old = shift; my $old = shift;
my $hash = $::defs{$new};
my ($passResp,$passErr); my ($passResp,$passErr);
($passResp,$passErr) = $hash->{helper}->{passObj}->setRename($new,$old); ($passResp,$passErr) = $hash->{helper}->{passObj}->setRename($new,$old);
::Log3($name, 1, ::Log3($new, 1,
qq(TeslaPowerwall2AC \(${name}\) - error while change the password hash after rename - $passErr) qq(TeslaPowerwall2AC \(${new}\) - error while change the password hash after rename - $passErr)
if ( !defined($passResp) if ( !defined($passResp)
and defined($passErr) ); and defined($passErr) );
::Log3($name, 1, ::Log3($new, 1,
qq(TeslaPowerwall2AC \(${name}\) - change password hash after rename successfully) qq(TeslaPowerwall2AC \(${new}\) - change password hash after rename successfully)
if ( defined($passResp) if ( defined($passResp)
and !defined($passErr) ); and !defined($passErr) );