fix bug with changing hash's

This commit is contained in:
Marko Oldenburg 2021-04-20 22:39:37 +02:00
parent a56755ffe9
commit 9ab151268d
2 changed files with 2 additions and 2 deletions

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:56:45 30203 lib/FHEM/Tesla/Powerwall.pm UPD 2021-04-20_22:39:25 30202 lib/FHEM/Tesla/Powerwall.pm

View File

@ -234,7 +234,7 @@ sub Undef {
sub Attr { sub Attr {
my ( $cmd, $name, $attrName, $attrVal ) = @_; my ( $cmd, $name, $attrName, $attrVal ) = @_;
my $hash = $$::defs{$name}; my $hash = $::defs{$name};
if ( $attrName eq 'disable' ) { if ( $attrName eq 'disable' ) {
if ( $cmd eq 'set' && $attrVal eq '1' ) { if ( $cmd eq 'set' && $attrVal eq '1' ) {