fix crash

This commit is contained in:
Marko Oldenburg 2021-02-27 15:48:43 +01:00
parent b4dde90ae9
commit ed2b5f531d
2 changed files with 2 additions and 2 deletions

View File

@ -725,7 +725,7 @@ sub ReadingsProcessing_Powerwalls {
while ( my ( $r, $v ) = each %{$powerwall} ) {
$readings{ 'wall_' . $i . '_' . $r } = $v;
if ref($v) eq 'HASH' ) {
if ( ref($v) eq 'HASH' ) {
while ( my ( $s, $t ) = each %{$v} ) {
$readings{ 'wall_' . $i . '_' . $r . '_' . $s } = $t;
}

View File

@ -1 +1 @@
UPD 2021-02-27_15:42:04 30955 FHEM/46_TeslaPowerwall2AC.pm
UPD 2021-02-27_15:47:38 30957 FHEM/46_TeslaPowerwall2AC.pm