fix: missing tree

This commit is contained in:
Sebastian
2023-11-12 19:47:49 +01:00
parent de58578a2d
commit df1830a670
3 changed files with 15 additions and 5 deletions

View File

@ -1079,10 +1079,10 @@ sub WriteReadings {
{
if ($v->{is_connected} ) {
readingsBulkUpdateIfChanged( $hash,
[$properties]{name}.'-ip', $v->{ip} )
$decode_json->{abilities}[0]{properties}[$properties]{name}.'-ip', $v->{ip} )
if ( ref( $v->{ip} ) ne 'HASH' );
readingsBulkUpdateIfChanged( $hash,
[$properties]{name}.'-isconnected', $v->{is_connected} )
$decode_json->{abilities}[0]{properties}[$properties]{name}.'-isconnected', $v->{is_connected} )
if ( $v->{is_connected} );
}
} # fi ethernet and wifi