diff --git a/fhem/CHANGED b/fhem/CHANGED index 991b3e4cb..7e0949b6b 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,9 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it + - bugfix: 59_Weather: This commit addresses several issues with conditionals + in the Weather.pm file. The syntax for checking command + attributes has been corrected, ensuring accurate + evaluation of conditions. - bugfix: 73_NUKIBridge: in the `Set` and `Get` methods, updated the return conditions to exclude the endpoint from the results when it matches the output from the command handlers diff --git a/fhem/FHEM/59_Weather.pm b/fhem/FHEM/59_Weather.pm index 6a1ab4534..96068ad0d 100755 --- a/fhem/FHEM/59_Weather.pm +++ b/fhem/FHEM/59_Weather.pm @@ -516,7 +516,7 @@ __END__ ], "release_status": "stable", "license": "GPL_2", - "version": "v2.3.0", + "version": "v2.3.1", "author": [ "Marko Oldenburg " ], diff --git a/fhem/lib/FHEM/Core/Weather.pm b/fhem/lib/FHEM/Core/Weather.pm index 8c09d2b5d..28e975a80 100644 --- a/fhem/lib/FHEM/Core/Weather.pm +++ b/fhem/lib/FHEM/Core/Weather.pm @@ -232,9 +232,6 @@ sub _LanguageInitialize { @directions_txt_i18n = @directions_txt_nl; %pressure_trend_txt_i18n = %pressure_trend_txt_nl; %status_items_txt_i18n = %status_items_txt_nl; - } - elsif ( $lang eq 'fr' ) { - } elsif ( $lang eq 'fr' ) { %wdays_txt_i18n = %wdays_txt_fr; @@ -870,11 +867,11 @@ sub Attr { ::InternalTimer( gettimeofday() + 0.5, \&FHEM::Core::Weather::DeleteForecastreadings, $hash ); } - elsif ('forecastLimit') { + elsif ( $cmd eq 'forecastLimit' ) { ::InternalTimer( gettimeofday() + 0.5, \&FHEM::Core::Weather::DeleteForecastreadings, $hash ); } - elsif ('alerts') { + elsif ( $cmd eq 'alerts' ) { if ( $cmd eq 'set' ) { $hash->{fhem}->{api}->setAlerts($AttrVal); }