testing #29

Merged
marko merged 73 commits from testing into main 2023-01-07 12:49:01 +00:00
Showing only changes of commit 745fea37e2 - Show all commits

View File

@ -586,7 +586,9 @@ sub Weather_WriteReadings {
else {
Weather_DeleteAlertsReadings($hash);
readingsBulkUpdate( $hash, 'warnCount',
scalar( @{ $dataRef->{alerts} } ) );
scalar( @{ $dataRef->{alerts} } ) )
if ( defined( $dataRef->{alerts} )
&& ref( $dataRef->{alerts} ) eq 'ARRAY' );
}
### state