change foreach to for
This commit is contained in:
parent
f723f1efaf
commit
a4ddfe9c8a
@ -719,7 +719,7 @@ sub ReadingsProcessing_Powerwalls {
|
|||||||
and scalar( @{ $decode_json->{powerwalls} } ) > 0 )
|
and scalar( @{ $decode_json->{powerwalls} } ) > 0 )
|
||||||
{
|
{
|
||||||
my $i = 0;
|
my $i = 0;
|
||||||
foreach my $powerwall ( @{ $decode_json->{powerwalls} } ) {
|
for my $powerwall ( @{ $decode_json->{powerwalls} } ) {
|
||||||
if ( ref($powerwall) eq 'HASH' ) {
|
if ( ref($powerwall) eq 'HASH' ) {
|
||||||
|
|
||||||
while ( my ( $r, $v ) = each %{$powerwall} ) {
|
while ( my ( $r, $v ) = each %{$powerwall} ) {
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user