diff --git a/FHEM/46_TeslaPowerwall2AC.pm b/FHEM/46_TeslaPowerwall2AC.pm index 55381ce..d6e2f10 100644 --- a/FHEM/46_TeslaPowerwall2AC.pm +++ b/FHEM/46_TeslaPowerwall2AC.pm @@ -719,7 +719,7 @@ sub ReadingsProcessing_Powerwalls { and scalar( @{ $decode_json->{powerwalls} } ) > 0 ) { my $i = 0; - foreach my $powerwall ( @{ $decode_json->{powerwalls} } ) { + for my $powerwall ( @{ $decode_json->{powerwalls} } ) { if ( ref($powerwall) eq 'HASH' ) { while ( my ( $r, $v ) = each %{$powerwall} ) { diff --git a/controls_TeslaPowerwall2AC.txt b/controls_TeslaPowerwall2AC.txt index 2695dc7..ec57af1 100644 --- a/controls_TeslaPowerwall2AC.txt +++ b/controls_TeslaPowerwall2AC.txt @@ -1 +1 @@ -UPD 2021-02-27_14:54:29 30720 FHEM/46_TeslaPowerwall2AC.pm +UPD 2021-02-27_15:27:28 30716 FHEM/46_TeslaPowerwall2AC.pm