fix: apply patch from stefanru

https://forum.fhem.de/index.php?msg=1332884

[Ticket: no]
This commit is contained in:
Marko Oldenburg 2025-02-04 20:52:52 +01:00
parent 6a38b446a9
commit 478c4a3159
3 changed files with 40 additions and 10 deletions

View File

@ -1,5 +1,5 @@
UPD 2024-10-11_12:02:22 25848 FHEM/59_Weather.pm UPD 2024-10-11_19:46:40 25848 FHEM/59_Weather.pm
UPD 2024-10-11_11:59:21 34293 lib/FHEM/Core/Weather.pm UPD 2025-02-04_20:50:25 34419 lib/FHEM/Core/Weather.pm
UPD 2023-01-29_16:14:48 50106 lib/FHEM/APIs/Weather/DarkSkyAPI.pm UPD 2023-01-29_16:14:48 50106 lib/FHEM/APIs/Weather/DarkSkyAPI.pm
UPD 2023-07-11_14:08:00 33779 lib/FHEM/APIs/Weather/OpenWeatherMapAPI.pm UPD 2023-07-11_14:08:00 33779 lib/FHEM/APIs/Weather/OpenWeatherMapAPI.pm
UPD 2024-10-11_12:02:42 37627 lib/FHEM/APIs/Weather/wundergroundAPI.pm UPD 2025-02-04_20:47:55 38751 lib/FHEM/APIs/Weather/wundergroundAPI.pm

File diff suppressed because one or more lines are too long

View File

@ -434,8 +434,13 @@ sub _Writereadings {
&& ref( $dataRef->{$r} ) ne 'ARRAY' ); && ref( $dataRef->{$r} ) ne 'ARRAY' );
} }
::readingsBulkUpdate( $hash, 'icon', if ( defined( $dataRef->{current}->{code} )
$iconlist[ $dataRef->{current}->{code} ] ); && $dataRef->{current}->{code} )
{
::readingsBulkUpdate( $hash, 'icon',
$iconlist[ $dataRef->{current}->{code} ] );
}
if ( defined( $dataRef->{current}->{wind_direction} ) if ( defined( $dataRef->{current}->{wind_direction} )
&& $dataRef->{current}->{wind_direction} && $dataRef->{current}->{wind_direction}
&& defined( $dataRef->{current}->{wind_speed} ) && defined( $dataRef->{current}->{wind_speed} )