f37a24673c94c2d759f08a94fd7a14e4f3f6edf6
Improved the language initialization logic by replacing the experimental `given/when` construct with a more standard `if/elsif` structure, enhancing code readability and maintainability. The attribute handling in the `Attr` subroutine was also refactored for clarity, removing unnecessary usage of `given/when`, which helps reduce complexity throughout the codebase. In the OpenWeatherMapAPI module, the logic for handling weather response data was streamlined by removing `given/when` statements in favor of `if` conditions. This change avoids potential confusion and enhances the clarity of the code logic. No breaking changes were introduced; the overall functionality remains intact.
Weather
Used branching model
- Master branch: Production version (copy of fhem/fhem-mirror/blob/master/fhem/FHEM/59_Weather.pm)
- Devel branch: Latest development version
Community support
The FHEM Forum is available here for general support.
In case you have a specific question about this module, it is recommended to find the right sub-forum.
It can either be found from the module info card using the FHEM Installer (e.g. using command search <MODULE_NAME>
) or it can be determined from the MAINTAINER.txt file.
Bug reports and feature requests
Identified bugs and feature requests are tracked using Github Issues.
Pull requests / How to participate into development
You are invited to send pull requests to the devel branch whenever you think you can contribute with some useful improvements to the module. The module maintainer will review you code and decide whether it is going to be part of the module in a future release.
Refactoring
Latest
Languages
Perl
98.7%
Shell
1.3%