patch-specials #10
| @@ -586,7 +586,9 @@ sub Weather_WriteReadings { | |||||||
|     else { |     else { | ||||||
|         Weather_DeleteAlertsReadings($hash); |         Weather_DeleteAlertsReadings($hash); | ||||||
|         readingsBulkUpdate( $hash, 'warnCount', |         readingsBulkUpdate( $hash, 'warnCount', | ||||||
|             scalar( @{ $dataRef->{alerts} } ) ); |             scalar( @{ $dataRef->{alerts} } ) ) | ||||||
|  |           if ( defined( $dataRef->{alerts} ) | ||||||
|  |             && ref( $dataRef->{alerts} ) eq 'ARRAY' ); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     ### state |     ### state | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user