fix: apply patch from stefanru
https://forum.fhem.de/index.php?msg=1332884 [Ticket: no]
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -434,8 +434,13 @@ sub _Writereadings {
|
||||
&& ref( $dataRef->{$r} ) ne 'ARRAY' );
|
||||
}
|
||||
|
||||
::readingsBulkUpdate( $hash, 'icon',
|
||||
$iconlist[ $dataRef->{current}->{code} ] );
|
||||
if ( defined( $dataRef->{current}->{code} )
|
||||
&& $dataRef->{current}->{code} )
|
||||
{
|
||||
::readingsBulkUpdate( $hash, 'icon',
|
||||
$iconlist[ $dataRef->{current}->{code} ] );
|
||||
}
|
||||
|
||||
if ( defined( $dataRef->{current}->{wind_direction} )
|
||||
&& $dataRef->{current}->{wind_direction}
|
||||
&& defined( $dataRef->{current}->{wind_speed} )
|
||||
|
Reference in New Issue
Block a user