change foreach to for
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user