devel #9

Merged
marko merged 17 commits from devel into testing 2021-07-05 11:15:19 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit df3c1e66db - 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:40:44 30162 lib/FHEM/Tesla/Powerwall.pm UPD 2021-04-20_21:50:19 30167 lib/FHEM/Tesla/Powerwall.pm

View File

@ -207,12 +207,12 @@ qq(TeslaPowerwall2AC \(${name}\) - defined TeslaPowerwall2AC Device with Host ${
($passResp,$passErr) = $hash->{helper}->{passObj}->setStorePassword($name,ReadPassword( $hash, $name )); ($passResp,$passErr) = $hash->{helper}->{passObj}->setStorePassword($name,ReadPassword( $hash, $name ));
::Log3($name, 1, ::Log3($name, 1,
qq(TeslaPowerwall2AC \(${name}\) - error while saving the password - $passErr) qq(TeslaPowerwall2AC \(${name}\) - error while saving the password - $passErr))
if ( !defined($passResp) if ( !defined($passResp)
and defined($passErr) ); and defined($passErr) );
::Log3($name, 1, ::Log3($name, 1,
qq(TeslaPowerwall2AC \(${name}\) - password successfully saved) qq(TeslaPowerwall2AC \(${name}\) - password successfully saved))
if ( defined($passResp) if ( defined($passResp)
and !defined($passErr) ); and !defined($passErr) );
@ -436,7 +436,7 @@ sub Set {
$list .= 'powerwalls:run,stop' $list .= 'powerwalls:run,stop'
if ( ::AttrVal( $name, 'devel', 0 ) == 1 if ( ::AttrVal( $name, 'devel', 0 ) == 1
exists($hash->{helper}->{passObj}) && exists($hash->{helper}->{passObj})
&& exists($hash->{helper}->{passObj}) && exists($hash->{helper}->{passObj})
&& defined($hash->{helper}->{passObj}->getReadPassword($name)) && defined($hash->{helper}->{passObj}->getReadPassword($name))
&& defined($hash->{TOKEN}) ); && defined($hash->{TOKEN}) );